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.


The file will not be moved to a trash folder.


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: 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


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