Deletes the given entity from this repository and calls the onDelete lifecycle. If the given entity does not exist in this repository, this function does nothing.