files
Permanently deletes a file owned by the user without moving it to the trash. For more information, see Trash or delete files and folders. If the file belongs to a shared drive, the user must be an organizer on the parent folder. If the target is a folder, all descendants owned by the user are also deleted.
delete/files/{fileId}
Path parameters
fileIdstring required
The ID of the file.
Query parameters
enforceSingleParentboolean
Deprecated: If an item isn't in a shared drive and its last parent is deleted but the item itself isn't, the item will be placed under its owner's root.
supportsAllDrivesboolean
Whether the requesting application supports both My Drives and shared drives.
supportsTeamDrivesboolean
Deprecated: Use supportsAllDrives instead.
Response
Successful response