# Delete

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.GoogleDrive>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FileQuery : `String`               | <p>Query for specific files to be deleted.</p><p>See Google Drive API Guide</p><p><br>Default: <code>\*</code><br>Example: <code>'42o3j8C7kntMJZeElbZb5B\_5u92snSIkb' in parents and name contains 'test'</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| 🗝ServiceAccountKeyJSON : `String` | <p>Service account key JSON.</p><p><br>Default: <code>-</code><br>Example: <code>{ "type": "service\_account", "project\_id": "something", "private\_key\_id": "fdsafdsafdsalmnop12345678909876543212344", "private\_key": "-----BEGIN PRIVATE KEY-----\nMIIE.......Hw==\n-----END PRIVATE KEY-----\n", "client\_email": "<someone@something.iam.gserviceaccount.com>", "client\_id": "123456789012345678900", "auth\_uri": "<https://accounts.google.com/o/oauth2/auth>", "token\_uri": "<https://oauth2.googleapis.com/token>", "auth\_provider\_x509\_cert\_url": "<https://www.googleapis.com/oauth2/v1/certs>", "client\_x509\_cert\_url": "<https://www....nt.com>" }</code></p> |
| {% endtab %}                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

{% tab title="Result: Result" %}

| Name                        | Description                                                                                             |
| --------------------------- | ------------------------------------------------------------------------------------------------------- |
| Success : `Boolean`         | <p>Gets a value indicating whether process was executed successfully.<br>Example: <code>true</code></p> |
| Data : `List<DeleteResult>` | <p>List of deleted items.<br>Example: <code>{ {"id", "filename"}, {"id", filename"} }</code></p>        |
| {% endtab %}                |                                                                                                         |

{% tab title="Changelog" %}

## Changelog

### \[1.0.0] - 2023-12-20

#### Added

* Initial implementation
  {% endtab %}
  {% endtabs %}
