drives

DELETE /drives/{driveId}

Permanently deletes a shared drive for which the user is an organizer. The shared drive cannot contain any untrashed items. For more information, see Manage shared drives.

Request

  • Base URL
    https://www.googleapis.com/drive/v3
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/drive
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/drive

Path parameters

driveIdstring required

The ID of the shared drive.

Query parameters

allowItemDeletionboolean

Whether any items inside the shared drive should also be deleted. This option is only supported when useDomainAdminAccess is also set to true.

useDomainAdminAccessboolean

Issue the request as a domain administrator; if set to true, then the requester will be granted access if they are an administrator of the domain to which the shared drive belongs.

Response

Successful response

Changes

No recorded changes to this operation across all 6 revisions of this API.