Why do you make it possible to Delete password protected documents simply by clicking the X in the thumbnails?
Clicking the X does not delete the document. It removes it from the list of recently opened documents.
Please, in the future send messages like these to https://ask.libreoffice.org/ as this list is for coordinating the documentation work.
Ilmari