check for permissions to delete