Delete object
Deletes file or directory by ID
Function DeleteObject(Val Token, Val Identifier) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Identifier | --object | String | ✔ | Identifier of the object to delete |
Returns: Map Of KeyAndValue - serialized JSON response from Google
1C:Enterprise/OneScript code example
Token = "ya29.a0AcM612wmWdggP-K6tOc3UqW0KxYMjUi60_Uhu-ERltTaavHGbML0nRBXqkuiBcr0GNmR_1gHKowaF1Rd_4Q5Amc9O23DEBZ95sNEGnpR5...";
Identifier = "1Uw6seoqvBcqUeIFLkklWn8ZNBc6nQkpY";
Result = OPI_GoogleDrive.DeleteObject(Token, Identifier);
- Bash
- CMD/Bat
oint gdrive DeleteObject \
--token "***" \
--object "11Yr24ZKEU8wnBOx0DJLOc7hFwaXuxM_Z"
oint gdrive DeleteObject ^
--token "***" ^
--object "11Yr24ZKEU8wnBOx0DJLOc7hFwaXuxM_Z"
Result
null