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 Success or failure of your HTTP request; here is a list of all status codes. Number

Related topics

Google Drive connector

About the elements of Okta Workflows

G Suite API documentation