Skip to main content
DELETE
cURL

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

https://www.googleapis.com/auth/userinfo.email
google_id_token-a99f12e0

View your email address

https://www.googleapis.com/auth/userinfo.email
google_id_token_legacy-a99f12e0

View your email address

Path Parameters

documentId
string
required

The ID of the document

Query Parameters

deleteMode
enum<string>
required

The mode of deletion of the document. The values are 'TRASH' (send document to library trash) or 'PERMANENT' (document is permanently removed from AODocs).

Available options:
PERMANENT,
TRASH
securityCode
string

The security code

domain
string

The G Suite domain

reason
string

The reason for deleting the document

Response

204

A successful response