Skip to main content
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_name": "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. Remove the field from LogEvent.data for all matching log events
  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_name
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_name": "eval-project",
    "context": "experiment1/trial1",
    "fields": [
        "score",
        "response"
    ]
}'
{
    "info": "Fields deleted successfully.",
    "deleted_fields": [
        "score",
        "response"
    ]
}