---
title: "Delete address"
method: DELETE
path: "/ecommerce/addresses/{addressId}"
tags: ["🛒 Ecommerce"]
---

# Delete address

`DELETE /ecommerce/addresses/{addressId}`

The API endpoint allows a logged-in user to delete their own address based on the provided `addressId` in the URL.

When accessing this endpoint, the user can specify the `addressId` of the address they wish to delete.

This functionality ensures that users can manage their address book by removing unwanted or outdated addresses from their profile within the ecommerce application.

## Response `200`

Delete address

- object
  - `data` object
    - `deletedAddress` object
      - `__v` number
      - `_id` string
      - `addressLine1` string
      - `addressLine2` string
      - `city` string
      - `country` string
      - `createdAt` string
      - `owner` string
      - `pincode` string
      - `state` string
      - `updatedAt` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/versions/a9f3a290e4dc/schema)
