A small script to clear the trash from Notion
- Clone the repository
git clone https://github.com/w4v3s/notion-clear-trash.git
- Install requirements
pip3 install -r requirements.txt
- Run python script
python3 notion-clear-trash.py
- Go to notion.so
- Open developer tools (hit F12)
- Navigate to the Application tab (may be hidden if the developer window is small)
- Expand Cookies under the Storage section on the sidebar
- Click on 'https://www.notion.so' to view all the cookies
- Copy the value for the key 'token_v2'