alert the user only if they can delete doc