You get this error because the file "s" is referenced by another component (custom action in your case). So you need to remove that custom action and then try to remove the file. I'm afraid that there is not command line to delete a custom action.
I manage to reproduce this. It seams to be a bug that causes the exception message to not be displayed correctly. Thank you for bringing this to our attention.
FOLLOW US
Get the latest news in Application Packaging