Script to clear the trash of all the workspaces of your Notion account.
This repository is strongly inspired from the project notion-clear-trash of the user axyyu. However, some modification has been done in order to delete the trash of all the workspaces instead of only the current workspace.
pip install git+https://github.com/thomashirtz/notion-clear-trash#egg=notion-clear-trash
notion-clear-trash `token`
The token is the API token, the steps to get it are the following:
- Go to www.notion.so.
- Press*
F12
to get to display theBrowser Developer Tools
. - Go to the
Storage
section, then theCookies
section, finally search for the value oftoken_v2
.