Permanently delete a file without moving it to the trash

DELETE {{baseUrl}}/files/:fileId?key={{key}}&oauth_token={{oauthToken}}

Permanently deletes a file owned by the user without moving it to the trash. If the file belongs to a shared drive the user must be an organizer on the parent. If the target is a folder, all descendants owned by the user are also deleted.

Request Params

KeyDatatypeRequiredDescription
enforceSingleParentstringDeprecated. If an item is not in a shared drive and its last parent is deleted but the item itself is not, the item will be placed under its owner's root.
supportsAllDrivesstringWhether the requesting application supports both My Drives and shared drives.
supportsTeamDrivesstringDeprecated use supportsAllDrives instead.
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

RESPONSES

status: OK

""