Delete File

Use this card if you want to permanently delete a file.

To execute this action on team files, you must be an organizer of the parent folder. To delete folders, you have to be the owner of that folder and all its contents.

Caution

The file will not be moved to a trash folder.

Input

Field Definition Type Required
File ID Unique ID of the file. The ID of a file can be found by navigating to the Google Drive web. Right-click on the file and select get sharable link. The File ID is the last part of that link, after id=. Example: https://drive.google.com/open?id=1avkd2a. Make sure to select the entire ID (about 20 characters long).

Alternatively, use the Search Files action card to find the file by name. See Search Files. The Search Files card has a File ID output field that can be dragged into this input field.

String TRUE

Output

Field Definition Type
Status Code

Result of the operation. The connector returns an HTTP status code that indicates whether the action taken by the card succeeded or failed. For example:

  • A 201 Created status code indicates success where a new resource was created.
  • A 403 Forbidden error indicates that the HTTP request wasn't processed because the necessary permissions were missing.

For a full list of possible status codes, see HTTP status codes.

Number

Related topics

Google Drive connector

Workflow elements

G Suite API documentation