# Delete an employer

Endpoint: DELETE /api/v1/employers/{employer_id}
Version: 0.0.1
Security: form_session, user_session, component_session, component_token, api_token

## Security:

  - `form_session` (unknown)
    http bearer Onboarded form session token

  - `user_session` (unknown)
    apiKey in cookie __session

  - `component_session` (unknown)
    apiKey in cookie __component

  - `component_token` (unknown)
    apiKey in header x-component-auth-token

  - `api_token` (unknown)
    http bearer Onboarded API token

## Path parameters:

  - `employer_id` (string, required)

## Response 200:

  - `200` (unknown)
    An employer with standard fields plus any system-defined custom attributes as top-level properties. System attributes are organization-specific fields (ScalarValue: string, number, boolean, or null) that extend the base employer schema.

## Response 200 fields (application/json):

  - `id` (string, required)
    Employer Identifier

  - `name` (string, required)

  - `ein` (any)

  - `dba_name` (any, required)

  - `phone` (any)

  - `employee_count` (any)

  - `entity_structure` (any)

  - `naics_code` (any)

  - `address` (any)

  - `address.street` (string, required)

  - `address.secondary` (any)

  - `address.city` (string, required)

  - `address.state` (string, required)

  - `address.zip` (any)

  - `address.country` (string, required)

  - `address.full_address` (any)

  - `custom_attributes` (object, required)
    Record of custom attribute values keyed by string path.

  - `active_theme_id` (any, required)

  - `created_at` (string, required)
    a string to be decoded into a DateTime.Utc

## Response 400:

  - `400` (unknown)
    The request did not match the expected schema

## Response 400 fields (application/json):

  - `issues` (array, required)

  - `issues._tag` (string, required)
    The tag identifying the type of parse issue
    Enum: "Pointer", "Unexpected", "Missing", "Composite", "Refinement", "Transformation", "Type", "Forbidden"

  - `issues.path` (array, required)
    The path to the property where the issue occurred

  - `issues.path._tag` (string, required)
    Enum: "symbol"

  - `issues.path.key` (string, required)

  - `issues.message` (string, required)
    A descriptive message explaining the issue

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "HttpApiDecodeError"

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "Unauthorized"

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "Forbidden"

## Response 404:

  - `404` (unknown)
    ResourceNotFoundError

## Response 404 fields (application/json):

  - `message` (string, required)

  - `_tag` (string, required)
    Enum: "ResourceNotFoundError"

