Create a smart icon and put that code in the formula: @Command([ToolsRefreshSelectedDocs])
Select the documents (in a view or a folder) and click on the smarticon. Although in my case the "key"-icon is still displayed, the actual document encryption has been removed from the documents and others can now read them.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
Background to that is that you have to apply the .encrypt-method to a document before saving, if it shall be encrypted. Default when saving is no encryption, and so the document will be decrypted when opened and re-saved.