Fix issue in delete_pool() function.

Correct way to delete child.