Remove ACL permission for a particular entity when it is deleted. The
hook is currently only done for deleteTemplateCmd.