I am using Spacemacs but I think this shouldn't matter for this question.
For some reason I am not able to find the place where Emacs is storing the files to reopen after launch.
I've greped for a file it always loads and found some instances of that path in the .emacs.d/.cache
folder. I've deleted these files. Didn't work.
I even deleted the entire .cache
folder. Even then the same files are reloaded after startup.
Where is Emacs saving these locations so I can delete them?
I have also not found a way to overwrite the state by deleting all buffers before quitting Emacs.
Edit for clarification:
All files being reloaded were .org
files.
.emacs.d/auto-save-list/
(unless you changed that in your.emacs
.~/.emacs.d/.cache/layouts/persp-auto-save
.