I think what i shoudl've had is:

@animals.delete(animal.name)
return animal