Yesterday I found a nice little program, haven’t tested it fully but it’s a good finding.
Package name is encfs is used to create an encrypted folder that you can easilly mount and unmount using a password.
It’s super easy to manage requiring only to create a folder at first usage mkdir ~/.crypt ~/crypt
and running encfs ~/.crypt ~/crypt
if the above is a first time you’ll be asked to type a password.
I may misinterpret what you actually mean by “want to remove”.
The “real” files and folders will be encrypted (e. g. ~/.crypt). Upon mounting with your password, encfs just creates a virtual unencrypted state you can interact with like any other file/folder (read, write, delete, …).
In @fernandomaroto’s example the unencrypted files/folders would be in ~/crypt.
Once unmounted, ~/crypt should be empty and can be removed.
You can unencrypt files/folders by simply copying them from ~/crypt to a different location.
Maybe I’m not understanding how it works? The folder is encrypted? Or it just encrypts any contents? I was just thinking that if the actual folder was encrypted not the contents then you can’t access it without password? So i was thinking if you want to remove it if that’s the case can you just delete it or some other method to remove. If its only the contents that are encrypted can you also delete any file inside?