more robust handling for delete projects