Yes you can, you just have to be very careful what you erase.
Here are some links that can be useful:
- VMware Knowledge Base
The first thing to do is to identify the Objects - you need to be exceedingly careful with this as there are a LOT of ways that in-use Object may be classified as Unassociated Object, some of the main types/reasons for this are noted in the kb Alessandro linked (which it would happen is an article I wrote ).
Unassociated does NOT mean Inaccessible.
I do not like the 3rd article linked above as it makes no effort at identifying what the Objects are - just because an Object is Inaccessible doesn't mean it is going to stay this way and you could be deleting the only current copy (which is Inaccessible due to loss of quorum as opposed to being stale).
"/usr/lib/vmware/osfs/bin/osfs-rmdir <foldername> -f"
This is neither an esxcli command nor the correct command for deleting Objects - that would be objtool.
If you have a support contract with VMware I would strongly advise opening a Support Request with us to take a better look here.
Thanks a lot