updated to manage bulk deletes based on dependencies failing