<?php
/**
 * Uninstall cleanup.
 *
 * @package CatalogFrameImageStudio
 */

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
	exit;
}

delete_option( 'cfis_openai_api_key' );
delete_option( 'cfis_plugin_version' );

foreach ( array( 'administrator', 'shop_manager' ) as $cfis_role_name ) {
	$cfis_role = get_role( $cfis_role_name );
	if ( $cfis_role ) {
		$cfis_role->remove_cap( 'catalogframe_manage_jobs' );
	}
}
