---
updatedAt: 2026-04-20T19:43:46.000Z
agentTools:
  projectIndex: https://docs.trybadge.com/llms.txt
---

# Delete user attribute

Delete a user attribute.
All user data associated with this attribute will be permanently removed.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Badge API",
    "version": "0"
  },
  "servers": [
    {
      "url": "https://api.trybadge.com/v0"
    }
  ],
  "security": [
    {
      "WorkspaceAuth": []
    }
  ],
  "tags": [
    {
      "name": "Workspace"
    }
  ],
  "paths": {
    "/workspace/userAttributes/{userAttributeName}": {
      "delete": {
        "operationId": "workspaceUserAttributeDelete",
        "tags": [
          "Workspace"
        ],
        "summary": "Delete user attribute",
        "description": "Delete a user attribute.\nAll user data associated with this attribute will be permanently removed.\n",
        "parameters": [
          {
            "in": "path",
            "name": "userAttributeName",
            "schema": {
              "$ref": "#/components/schemas/AttributeName"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400ErrorMessage"
          },
          "404": {
            "$ref": "#/components/responses/404NotFound"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "WorkspaceAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "AttributeName": {
        "type": "string",
        "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
      }
    },
    "responses": {
      "404NotFound": {
        "description": "The specified resource was not found."
      },
      "400ErrorMessage": {
        "description": "Invalid input was received.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "message"
              ],
              "properties": {
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
```