ensured dependencies are deleted on Api#remove