Error when trying to delete the collecttion