Fixed mongodb entity delete operation