prefix."allimages_generations"; if (!empty($api_key)) { $result = $wpdb->get_col( << 'application/json', 'api-key' => $api_key ]; $options['body'] = json_encode([ 'printIds' => $result ]); $args = wp_parse_args( $options, [ 'method' => 'DELETE', 'timeout' => '5', 'redirection' => '5', 'httpversion' => '1.0', 'blocking' => false, 'cookies' => [], ] ); $url = 'https://api.all-images.ai/v1/image-generations'; $response = wp_remote_post($url, $args); } } $wpdb->query( "DROP TABLE IF EXISTS ".$tablename ); delete_option('all-images-ai-settings'); delete_option('all-images-api-key');