Delete File

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

Required fields are indicated by a red asterisk on the Action Card.

Note: The file will not be moved to a trash folder.

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.


  • File

    • File ID (text): 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 you need, 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 card to find the file by name (see Search Files). This card has a File ID output that can be dragged into this input field.


  • Response

    • Status Code (number): Success or failure of your HTTP request; here is a list of all status codes.

Related topics

Google Drive connector

About the elements of Okta Workflows

G Suite API documentation