Note: Use and transfer of information received from Google APIs to any other app will adhere to Google API Services User Data Policy, including the Limited Use requirements.

Google Drive - Delete a file

Use the Google Drive - Delete a file action A tool for building the processes, logic, and direction within workflows. to delete a file in Google Drive.

For more information about the Google Drive connector, see Google Drive.

Configure the Google Drive - Delete a file action

     
  1. Add the action to the workflow and open the action configuration panel. For more information, see Add, rename, and copy actions.

  2. Select a Connection. If you do not have a connection, see Add a connection.

  1. Select the Drive you want to delete the file in.
  2. Select a source type. The option presented is dependent on the source type selected:
    • The File path of the file you want to delete. You can also browse the file structure using the browse icon ().
    • The File ID of the file you want to delete.
  3. Select whether to permanently delete or move to trash.

Google Drive - Delete a file action fields and settings

Section Field Description Variable types
(unlabeled) Connection Credentials and other settings required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

The Google Drive connection that contains the file you want to delete.

To refresh the available connections, click Refresh.

(n/a)
Destination Drive The drive where you want the file to be deleted. Text
  Select a source type

The destination type which will be used to delete the file.

  • File path

  • File ID

Boolean
  File path The path of the file you want to delete. You can also browse the file structure using the browse icon (). Text
  File ID The ID of the file you want to delete.

The file ID can be retrieved by using the Google Drive - Get file metadata action's ID output .

Text
  Permanently delete? Select whether to permanently delete a file or move it to trash. Boolean