Added eraseEntity().