query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_steadypost_' ) . '%', $wpdb->esc_like( '_transient_timeout_steadypost_' ) . '%', $wpdb->esc_like( 'steadypost_runlog_' ) . '%' ) ); wp_clear_scheduled_hook( 'steadypost_sync' ); wp_clear_scheduled_hook( 'steadypost_sync_continue' ); // The private upload folder: the stored spreadsheet and any unpacked images. $steadypost_uploads = wp_upload_dir(); $steadypost_dir = trailingslashit( $steadypost_uploads['basedir'] ) . 'steadypost-private'; if ( is_dir( $steadypost_dir ) ) { require_once ABSPATH . 'wp-admin/includes/file.php'; if ( WP_Filesystem() ) { global $wp_filesystem; $wp_filesystem->rmdir( $steadypost_dir, true ); } }