GoogleDrive delete file

Note: This is an external action and may execute on servers running outside your data center Centralized locations used to house servers used by Nintex for remote storage, processing, or distribution of data. Nintex has a number of regional data centers available for Nintex for Office 365. For information about Nintex data centers and where your data center is located, contact your Nintex account or territory manager. region. Before implementing, consider performance and regional concerns where digital boundaries are an issue. For more information, see In-tenant and external actions.

Deletes a file from Google Drive identified by either the file ID or the file name. The file ID can be retrieved from the following actions: Google Drive query files and Google Drive upload file.

Note: If the service encounters multiple folders with the same name, it will only access the most recently modified folder. Likewise, if the service encounters multiple files with the same name, it will only delete the most recently modified file.

Action settings

Do one of the following to open the Action configuration window:

  • Double-click the action.
  • Click on the action and then click Configure.

See Action configuration window for more information.

Field Description

Identify file by

Select one of the following options.

  • File Name And Source Folder: Identifies file by its name and (optionally) source folder.
  • File ID: Identifies file by its ID.

    To find a Google Drive file ID, retrieve a link using Get Link and then locate the characters after "id=" as indicated in bold in the following example: 
    https://drive.google.com/open?id=FILE_ID

File ID or name

Specify the ID or the name of the file to delete, according to the option selected for Identify file by. If specifying a file name, include the extension when applicable.

Source folder

Specify the folder containing the file to be deleted. If not specified, the file is assumed to be at the root level.

Example: Crestan\Depts

If multiple folders of the same name exist, only the most recently modified folder is accessed.

Delete permanently

Specify whether or not to make the deletion permanent.

  • Yes: Permanently deletes the file.
  • No: Moves the file to Trash.

    Note: Moving files to Trash does not free up resources.

    The "Last modified" date is changed to the time at which this action was executed for any files moved to Trash. This change is in accordance with the Google Drive API. This change to the "Last modified" date does not occur when the file is manually moved to Trash.

Authorizing user

Specify an email address to receive the authorization request for the action. External email addresses can be used.

For more information about how to use Lookups in configuration fields, see Lookups in action configuration fields.