When disk space is exhausted due to the project size, discarding the changes doesn't clear `SessionData`
- Dominant language
- C++
- Stars
- 18.4k
- Forks
- 2.7k
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 78
Description
### Bug description
_No response_
### Steps to reproduce
1. Create a new project
2. Bloat the project file size so that the disk space is exhausted
3. Observe: "disk is full" message pops up
4. Click [OK]
5. Close the project without saving
6. Observe
### Expected behavior
After the project is closed without saving, the temporary project file in `SessionData` directory should be deleted.
The user then can proceed with using Audacity as normal.
### Actual behavior
After the project is closed without saving, the temporary project file in the' SessionData' directory remains.
The user is blocked from using Audacity and sees the message saying the config file can't be accessed.
### Audacity Version
Audacity 3.7.1
### Operating system
macOS
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.