parent and remove-functions combined.