Skip to main content

TdxCloudStorageItem.Delete Method

Deletes the online resource.

Declaration

procedure Delete; virtual;

Remarks

Call this procedure to permanently delete the file or folder corresponding to the current metadata container from the connected cloud storage. If the deleted resource is a non-empty folder, the Delete procedure also erases all nested files and folders. This delete operation can take a noticeable amount of time depending on the deleted resource count.

A Delete procedure call raises an exception if the online resource is impossible to delete. For instance, you cannot delete root and special folders. Refer to the descriptions of the Delete procedure implementations provided by TdxCloudStorageItem class descendants for additional information.

Note

A single Delete procedure call sends only a single resource delete request to the connected cloud storage’s server regardless of the nested resource count. The cloud storage component raises the OnItemDeleted event once per every successful resource delete request. If a Delete procedure call results in an error, the OnError event occurs instead.

See Also