|
|
|
|
DriveDeleteFile (Function) In french: DriveSupprimeFichier
Not available
Deletes a file from a remote drive.
oOAuth2Param is OAuth2Parameters
oOAuth2Param.ClientID = "client_id"
oOAuth2Param.ClientSecret = "client_secret"
oOAuth2Param.RedirectionURL = "http://localhost:9000/"
oDrive is Drive
oDrive = oDriveConnect(oOAuth2Param)
IF DriveDeleteFile(oDrive, "/MyDirectories/File.txt") = False THEN
Error("Unable to delete file", ErrorInfo())
RETURN
END
Syntax
Deleting a file from a remote drive Hide the details
<Result> = DriveDeleteFile(<Drive> , <File to delete>)
<Result>: Boolean - True if the file was deleted,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Drive>: Drive or gglDrive variable Name of the Drive or gglDrive variable that corresponds to the drive to be used. The connection to the drive must have been previously established. Otherwise, the element is not deleted. <File to delete>: Character string Absolute path of the file to be deleted. If this parameter does not correspond to a valid file path, the file will not be deleted.
Deleting a Google Docs Editor file from Google Drive Hide the details
<Result> = DriveDeleteFile(<Google Drive> , <File to delete>)
<Result>: Boolean - True if the file was deleted,
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Google Drive>: gglDrive variable Name of the gglDrive variable that corresponds to the Google Drive service to be used. The connection to the drive must have been previously established. Otherwise, the element is not deleted. <File to delete>: GglFile variable Name of the GglFile variable that corresponds to the file to be manipulated. Remarks A file deleted with DriveDeleteFile cannot be recreated directly. The user must log in again to recreate the file.
Related Examples:
|
Unit examples (WINDEV): Drive functions
[ + ] This example illustrates the use of Drive functions (Google Drive, Dropbox, OneDrive).
|
|
Unit examples (WINDEV Mobile): Drive functions
[ + ] This example illustrates the use of Drive functions (Google Drive, Dropbox, OneDrive).
|
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|