---
title: "Delete peer"
method: DELETE
path: "/api/ab/peer/{ab}"
tags: ["address book"]
---

# Delete peer

`DELETE /api/ab/peer/{ab}`

This function is an API endpoint that deletes a peer from an address book.

## Parameters

- `ab`: The identifier of the address book.

- `request`: A JSON object containing an array of peer IDs to be deleted.

## Returns

If successful, this function returns an `ActionResponse::Empty` object.

## Path parameters

- `ab` string, required

## Request body

- string[]

## Response `200`

\
            # [200 OK](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200)  
            This response is given when the request is successful.  
            The body is empty if there is no error,  
            The body contains a json object with the error {"error":"Error message"}

## Other responses

- `401`
- `422` — # [422 Unprocessable Entity](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422) This response is given when you request body is not correctly formatted.

---

[API](https://skmtc.dev/nesaku/apis/sctgdesk-api-server.md) · [All operations](https://skmtc.dev/nesaku/apis/sctgdesk-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nesaku/sctgdesk-api-server/revisions/b1c0e7a4434f/schema)
