DeleteFromCloud
Structure
DeleteFromCloud(sService, sFileName, sFolder: String; bAllowAuth: Boolean): String
Type
Function
Description
This function deletes a filename (sFileName) from the Cloud service specified by sService. If the file exists in a sub-folder in the Cloud service this can be specified in sFolder parameter. Upon execution, if no token exists for the cloud service AND the bAuth parameter is True then the service's login screen will be shown in a browser window. This token will be remembered for future sessions. The function will return 'SUCCESS' if the delete is successful.
Parameters: 4
sService = the name of the online cloud service. Acceptable values are: 'BOX' (box.com) and 'DROPBOX' (dropbox.com)
sFileName = the name of file to be deleted
sFolder = Optional folder name for the file. This folder must be only one-level deep, directly underneath the root directory.
bAllowAuth = If previous tokens saved to the database are not found and/or do not allow access to the online service, this parameter determines if a browser window should be shown to allow for credentials to be entered. If this script is intended to be run in an automated/unattended setup, then this parameter should be set to False.
Return Value
Text |