Unable to delete item due to dependencies