# Delete File

> `UiPath.GSuite.Activities.DeleteFile`

`UiPath.GSuite.Activities.DeleteFile`

## Description
Deletes a file hosted on Google Drive.
:::note
If you want to delete a file, but don't have sufficient permissions, you can use the [Move File](https://docs.uipath.com/activities/other/latest/productivity/gsuite-move-drive-file) activity with **Destination Folder** set to `Trash`.
:::

### Scopes

This activity requires the following scopes:

* https://www.googleapis.com/auth/drive.appdata

OR

* https://www.googleapis.com/auth/drive

## Project compatibility

Windows - Legacy | Windows

## Configuration
### Properties

### Common

* **ContinueOnError** - If set, the remaining activities are executed if the current activity fails. This field supports Boolean values.
* **DisplayName** - The display name of the activity. This property supports `String` variables and string formatted values.

### Input

* **FileID** - The ID of the file that you want to delete. This property supports `String` variables and string formatted values. When entering your value, use the exact File ID, or the output property variable from a previous [Find Files And Folders](https://docs.uipath.com/activities/other/latest/productivity/gsuite-find-files) or [Copy File](https://docs.uipath.com/activities/other/latest/productivity/gsuite-copy-drive-file) activity.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level. This field supports Boolean values.
