Skip to main content

Delete object

Deletes file or directory by ID

Function DeleteObject(Val Token, Val Identifier) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Identifier--objectStringIdentifier 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);
    oint gdrive DeleteObject \
--token "***" \
--object "11Yr24ZKEU8wnBOx0DJLOc7hFwaXuxM_Z"
Result
null