You can recover a deleted file in Google Drive while it is still in Trash. Google's Drive API guide says trashed files can be restored within 30 days, and deleting removes them permanently. For the step-by-step clicks, follow Google's "Recover a deleted file" help page.
That help page applies to files you deleted from your own Google Drive account. It has separate tabs for Android phones and tablets and for iPhone and iPad; this guide covers only the computer version.
What the 30-day Trash rule means
Google's page says files stay in Trash for 30 days and are then deleted forever. Google's Drive API guide describes the same thing from the developer side: trashed files can be restored within 30 days, and deleting removes them permanently.
Two details matter more than the countdown, according to Google's "Delete files in Google Drive" page:
- Sharing doesn't stop. Anyone you shared the file with can still access it until it is permanently deleted. Moving a file to Trash is not a way to cut off access.
- Trash still uses your storage. A trashed file counts toward your storage until it is permanently deleted. If you're deleting things to free up space, nothing changes until the Trash is emptied or the 30 days pass. Our guide to why your Google storage is full covers what else counts.
So Trash is a safety net, but a costly one: it holds onto your quota and your sharing settings while it waits.
Why ownership decides who can trash a file
Google's Drive API guide says only the owner can trash a file. If a file you used was owned by someone else, it's the owner who controls whether it ends up in Trash.
It works the other way too. If the owner permanently deletes a file, everyone they shared it with loses access. Google suggests transferring ownership first if other people still need the file.
Emptying Trash is permanent
Google's page says clicking Empty trash deletes the files in your Trash forever. Before you do it, check that nothing you want to keep is still in there.
This guide doesn't cover getting a file back after Trash has been emptied or the 30 days have passed. Google's restore instructions only cover files still in Trash, and options for Google Workspace accounts aren't covered here.
WhatsApp backups are a separate case
If the thing you lost is a WhatsApp backup stored in your Google account, start somewhere other than Drive. Google's recovery page says WhatsApp manages those backups even when they're stored on your Google Account, and it sends people to the WhatsApp Help Center.
If you didn't delete a file but overwrote its contents, that's a different fix: see how to restore an earlier version of a Google Doc or Sheet.