# Archive a company address

**DELETE** `/addresses/{address_id}`

Archives the address: it leaves lists and GET returns ADDRESS_NOT_FOUND, while past orders and devices keep it.

---

## Parameters

### `address_id` (_path_, required)

Address id

- **Type:** `string`
- **Example:** `"42"`
- **Constraints:** pattern `^[1-9]\d*$`

## Responses

### 200

Deleted address

**application/json**

_Schema ref:_ `#/components/schemas/GetAddressResponse` (GetAddressResponse)

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "first_name": {
          "type": "string",
          "nullable": true
        },
        "last_name": {
          "type": "string",
          "nullable": true
        },
        "phone": {
          "type": "string",
          "nullable": true
        },
        "phone_country": {
          "type": "string",
          "nullable": true
        },
        "email": {
          "type": "string",
          "nullable": true
        },
        "address1": {
          "type": "string",
          "nullable": true
        },
        "address2": {
          "type": "string",
          "nullable": true
        },
        "type": {
          "type": "string",
          "nullable": true,
          "description": "Address kind: OFFICE, HOME, PO_BOX or EXTERNAL_STORAGE"
        },
        "zip": {
          "type": "string",
          "nullable": true
        },
        "city": {
          "type": "string",
          "nullable": true
        },
        "state": {
          "type": "string",
          "nullable": true,
          "description": "Legacy free-text state, no longer written: read administrative_area instead.",
          "deprecated": true
        },
        "administrative_area": {
          "type": "string",
          "nullable": true,
          "description": "Local subdivision code",
          "example": "MI"
        },
        "administrative_area_iso": {
          "type": "string",
          "nullable": true,
          "description": "ISO 3166-2 subdivision code",
          "example": "IT-MI"
        },
        "country": {
          "type": "string",
          "nullable": true,
          "description": "ISO 3166-1 alpha-2 country code",
          "example": "FR"
        },
        "label": {
          "type": "string",
          "nullable": true
        },
        "comment": {
          "type": "string",
          "nullable": true
        },
        "is_default": {
          "type": "boolean"
        },
        "is_hq": {
          "type": "boolean"
        },
        "user_id": {
          "type": "integer",
          "nullable": true,
          "description": "Employee who lives at this HOME address; null for other addresses"
        },
        "created_at": {
          "type": "string",
          "nullable": true
        },
        "updated_at": {
          "type": "string",
          "nullable": true
        }
      },
      "required": [
        "id",
        "first_name",
        "last_name",
        "phone",
        "phone_country",
        "email",
        "address1",
        "address2",
        "type",
        "zip",
        "city",
        "state",
        "administrative_area",
        "administrative_area_iso",
        "country",
        "label",
        "comment",
        "is_default",
        "is_hq",
        "user_id",
        "created_at",
        "updated_at"
      ]
    }
  },
  "required": [
    "data"
  ]
}
```

### 400

Validation error

**application/json**

_Schema ref:_ `#/components/schemas/ValidationErrorResponse` (ValidationErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Every validation failure, comma-separated",
      "example": "Required, must be an ISO 3166-1 alpha-2 country code"
    },
    "type": {
      "type": "string",
      "enum": [
        "validation_error"
      ]
    },
    "error": {
      "type": "string",
      "enum": [
        "validation_error"
      ]
    }
  },
  "required": [
    "message",
    "type",
    "error"
  ]
}
```

### 401

Missing, invalid, or revoked API key

**text/plain**

```json
{
  "type": "string",
  "example": "Unauthorized"
}
```

### 403

The API key has READ scope; this operation needs WRITE

**application/json**

_Schema ref:_ `#/components/schemas/InsufficientScopeErrorResponse` (InsufficientScopeErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "INSUFFICIENT_SCOPE"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 404

Resource not found

**application/json**

_Schema ref:_ `#/components/schemas/DeleteAddressNotFoundErrorResponse` (DeleteAddressNotFoundErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "COMPANY_NOT_FOUND",
        "ADDRESS_NOT_FOUND"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 429

Rate limit exceeded. The RateLimit-* headers give the limit and the reset time.

**text/plain**

```json
{
  "type": "string",
  "example": "Too many requests, please try again later."
}
```

### 500

Unexpected server error

**application/json**

_Schema ref:_ `#/components/schemas/InternalErrorResponse` (InternalErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "INTERNAL_ERROR"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 503

Rate limiting is temporarily unavailable; retry with backoff

**application/json**

_Schema ref:_ `#/components/schemas/RateLimiterUnavailableResponse` (RateLimiterUnavailableResponse)

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    }
  },
  "required": [
    "message"
  ]
}
```

## Security

```json
[
  {
    "bearerAuth": []
  }
]
```

**bearerAuth:** Bearer token using a Fleet platform API key (flt_sk_…).

---

_Generated from the OpenAPI specification for raw Markdown / tooling use._
