deleting terms programmatically

You can use below to assign all posts to another term during deletion mentioned on same page..
“The $args ‘force_default’ will force the term supplied as default to be assigned even if the object was not going to be termless.”

Other wise if there was only one term attached with post, post becomes term less.