--- sidebar_position: 9 --- # Delete object Deletes file or directory by ID `Function DeleteObject(Val Token, Val Identifier) Export` | Parameter | CLI option | Type | Description | |-|-|-|-| | Token | --token | String | Token | | Identifier | --object | String | Identifier of the object to delete | Returns: Map Of KeyAndValue - serialized JSON response from Google
```bsl title="Code example" Token = "ya29.a0AcM612wLdbBK14FR2SE0d3WHabYb8Xtppm0oKCcbVrecgsA-a5DfsgZ29stOw4hu84F_IpHbKTJocsm1WpjLQPBT5MJ6p8D7H1PKa_iT0..."; Identifier = "1RijXw14hyQN_59ZOzJ9f35ezzU_qd114"; Result = OPI_GoogleDrive.DeleteObject(Token, Identifier); ``` ```sh title="CLI command example" oint gdrive DeleteObject --token %token% --object "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa" ``` ```json title="Result" ```