Implements a hook for deletion of entities on the client.