# DELETE /security/bans/{id}

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the security group.

Lift a ban by ID

- Who may call it: administrator
- Token scope, any of: security, all
- Answers: 200 OK

UrbeStack keeps the lifted ban in the ban history, marks it as unblocked, and records who lifted it. It tells fail2ban to forget the ban in the rule that issued it. The firewall continues to block the IP address wherever another active ban applies.

The API returns an Unblocked response. If the ban has expired or is already unblocked, the response reports its current state.

## As a command

- [urbestack-ban-del](https://urbestack.com/docs/commands/urbestack-ban-del.md): Lifts one active ban by ID or every active ban that matches the filters.

## Parameters

- `id` (path, integer, 1 or more, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X DELETE "$API/security/bans/1" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "addresses": [
    "text"
  ],
  "fail2ban": "text",
  "state": "text",
  "unblocked": 1
}
```

## Errors

- 400: Invalid id
- 400: Say which bans: an address or network, a service or rule, a search, or a time window; or clear all blocks
- 401: Authentication required
- 404: Ban <id> not found
