Reminder : Memory management in Krita 5 now

novames00,
Months ago I posted a question similar to yours. The explanation they gave me was very didactic. So I suggest that you read it.
I even quote the photoshop ‘purge’ command. I believe this is what you would like Krita to have.
Here it is: