DELETE
/
v0
/
logs
/
fields
curl --request DELETE \
  --url 'https://api.unify.ai/v0/logs/fields' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "project": "eval-project",
    "context": "experiment1/trial1",
    "fields": [
        "score",
        "response"
    ]
}'
{
    "info": "Fields deleted successfully.",
    "deleted_fields": [
        "score",
        "response"
    ]
}
Deletes one or more fields from a project. This will:
  1. Delete all Log and DerivedLog entries with the specified field names (not the entire LogEvent)
  2. Delete the field type records for those fields
This operation cannot be undone, so use with caution.

Authorizations

Authorization
string
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

project
string
required
Name of the project the fields belong to.
context
string | null
Optional context path for the fields.
fields
[string]
required
List of field names to delete.
curl --request DELETE \
  --url 'https://api.unify.ai/v0/logs/fields' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "project": "eval-project",
    "context": "experiment1/trial1",
    "fields": [
        "score",
        "response"
    ]
}'
{
    "info": "Fields deleted successfully.",
    "deleted_fields": [
        "score",
        "response"
    ]
}