connecting the remove_remote_object method to registry.remove()