I have photoshop v 21.2.4 and lightroom classic.After preprocessing in lightroom, I process it in Photoshop, while it is deposited in the folder with the original photo. Psd file, which after processing and saving in jpeg.persists further.How can I make sure it is automatically erased after closing the program?After processing hundreds of files, the same number of .psd files remain, which must be erased manually.
This about file and folder management, not Lightroom. If you know you are going to delete a series of files at a later point, you put them all in a folder. Then you delete the folder.
BTW the normal procedure is to keep the PSD masters, but delete any derivative jpegs from them when they have served their purpose, because you know you can recreate them in a second. Jpeg is not suitable for archiving and further editing.