Discuss this help topic in SecureBlackbox Forum
Clouds: Delete file
To delete a file
- Obtain the instance of TElOneDriveFile for the file to be deleted.
-
Call TElOneDriveDataStorageObject.Delete() method.
The method moves the file to Trash.
After calling this method, the object is freed/disposed, and other methods 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#:
TElOneDriveFile file = storage.AcquireObject(@"...") as TElOneDriveFile;
Console.WriteLine("File: {0} ({1}, size = {2})",
file.Name, file.ObjectType, file.Size);
file.Delete();
How To articles about OneDrive cloud
Discuss this help topic in SecureBlackbox Forum