def METHOD_NAME(test_user, community, record_community, service):
    """Test missing permissions to delete."""
    record = record_community.create_record()
    data = {"records": [{"id": record.pid.pid_value}]}
    with pytest.raises(PermissionDeniedError):
        service.delete(test_user.identity, str(community.id), data)