TrashResource Method
Moves the specified file or folder to the trash.
Syntax
ANSI (Cross Platform) int TrashResource(const char* lpszResourceId); Unicode (Windows) INT TrashResource(LPCWSTR lpszResourceId);
- (void)trashResource:(NSString*)resourceId;
#define MID_GOOGLEDRIVE_TRASHRESOURCE 35 IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_GoogleDrive_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method moves the file or folder specified by ResourceId to the trash. The resource may be restored from the trash by calling RestoreResource.
To permanently delete a resource, call DeleteResource. To empty the trash (thus permanently deleting all trashed items), call EmptyTrash.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)