[BISERVER-9473] Check valid permission before deletion