Conditionally remove delete from directory context menus