added logic for when there is nothing to delete on delete all method