DriveClientDeleteFileAsync(File) Method
Asynchronously permanently deletes a existing file from the Google Drive of the user account.
Namespace: DevCase.ThirdParty.Google.DriveAssembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public Task<string> DeleteFileAsync(
File file
)
Public Function DeleteFileAsync (
file As File
) As Task(Of String)
Dim instance As DriveClient
Dim file As File
Dim returnValue As Task(Of String)
returnValue = instance.DeleteFileAsync(file)
public:
Task<String^>^ DeleteFileAsync(
File^ file
)
member DeleteFileAsync :
file : File -> Task<string>
No code example is currently available or this language may not be supported.
- file File
-
A existing file to delete.
TaskString
The resulting
String.
This is a code example.
No code example is currently available or this language may not be supported.
Dim client As New DriveClient("C:\GoogleSecrets.json", "yourmail@gmail.com", DriveScopes.Full)
Dim credential As UserCredential = Await client.AuthorizeAsync()
Dim fileToDelete As Global.Google.Apis.Drive.v3.Data.File = Await GetFileByIdAsync(" File Id. ")
Dim result As String = Await DeleteFileAsync(fileToDelete)
Console.WriteLine(result)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.