Discuss this help topic in SecureBlackbox Forum
Clouds: Delete folder
- Obtain the instance of TElOneDriveFolder
for the folder, which you want to delete.
- Call Delete() method of the folder. The folder with all contents (if any) will be moved to Trash.
After calling this method, the object is freed/disposed, thus other method(s) of this object MUST NOT be called, otherwise you'll get an exception.
It is not currently possible to restore the object from Trash.
C#:
TElOneDriveFolder folder = storage.AcquireObject(@"...") as TElOneDriveFolder;
Console.WriteLine("Folder: {0} ({1}, children = {2})",
folder.Name, folder.ObjectType, folder.Count);
folder.Delete();
How To articles about OneDrive cloud
Discuss this help topic in SecureBlackbox Forum