Google Drive Delete file function

The Google Drive Delete file function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Google Drive functionality to delete a file.

For a full list of available functions, please read Google Drive functions.


Description

The Google Drive Delete file function permanently deletes a file or folder. This action cannot be undone. Use the Trash function for a reversible delete.


Setting it up

To use the Google Drive Delete file function, follow these instructions:

{{popups:rpas/add:action=google-workspace-drive-delete}}

Once on a process map:

  1. Navigate to the process where you would like to add the Google Drive Delete file function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the Google Drive Delete file option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File IDYesText-The file or folder ID to permanently delete

Output variables

This action does not produce output variables.


Errors

ErrorDescription
File not foundThe specified file ID does not exist
Permission deniedInsufficient permissions to delete the file

Tips

  • This action is permanent and cannot be undone
  • Consider using Trash file instead for a reversible delete
  • Deleting a folder also deletes all its contents

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.