Hello, I tested this feature on my on and this is working well. I do not get the action 'Remove document file' if the file is set to mandatorily for the object type.
Could it be that you speak about a different feature when mentioning attachments?
Do you mean the document file of an object or a document listed in the process file?