// If uninstall not called from WordPress, then exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
$terms = get_terms(
array(
'taxonomy' => 'comp_status',
'hide_empty' => false,
)
);
foreach ( $terms as $term ) {
wp_delete_term( $term->term_id, 'comp_status' );
}