Discuss this help topic in SecureBlackbox Forum

Clouds: Delete folder

To delete a folder call TElDropboxDataStorage.DeleteObject() method and pass it the absolute path of the folder being deleted.

C#:


storage.DeleteObject(@"/Parent1/Parent2");

If you already have an object of TElDropboxDataStorageObject class, you can use its Delete() method instead of the path. In this case you would need to free/dispose of the object after the call to Delete() method:

C#:


TElDropboxDataStorageObject folder = storage.AcquireObject(@"/Parent1/Parent2");
folder.Delete();
folder.Release();

Alternatively you can call TElDropboxDataStorage.DeleteObject() and pass it the reference to the instance of TElDropboxDataStorageObject that identifies the folder being deleted. In this case the TElDropboxDataStorageObject object will freed/disposed of automatically.

C#:


TElDropboxDataStorageObject folder = storage.AcquireObject(@"/Parent1/Parent2");
storage.DeleteObject(ref folder);

How To articles about Dropbox cloud

Discuss this help topic in SecureBlackbox Forum