delete()

Delete files and folders

delete()

This method will delete files and folders.

Parameters

Name
Type
Description

$ids[]

array

ID of the entries that should be deleted.

Return

Name
Type
Description

$nodes

CachedNode[]

An array of Entry objects for the deleted files/folders

Usage

WPCP_ONEDRIVE_API::set_account_by_id('8c9bacda0-d8d8-4b22-b634-7b5281687575');
WPCP_ONEDRIVE_API::set_drive_by_id('b!DlaHWskCed_MIid3KpJH5Lbatf9HsdXBAZH5YcvPAbMhJUKzTJyzgvXZYpBS');

$ids = [
  '01EXLSWHWMQZNDMLRG7NFIWAVYCFJAXP2R',
  '01EXLSWHW3APNASPERAVGJEAVQAMUNIKF6'
];

$deleted_nodes = WPCP_ONEDRIVE_API::delete($ids');

Last updated