# urbestack-ban-del

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

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-ban-del --id N
urbestack-ban-del [--address ADDRESS|NETWORK] [--service SERVICE] [--jail RULE] [--q TEXT] [--since TIME] [--until TIME] [--by WHO]
```

## Description

Lifts one active ban by ID or every active ban that matches the filters. UrbeStack marks each lifted ban as unblocked and tells fail2ban to forget it in the rule that issued it. The firewall keeps blocking an IP address wherever another active ban still applies.

--id takes precedence over the filters. If the ban has expired or is already unblocked, UrbeStack returns its current state. Without --id, supply at least one filter. Use --by to record a name of up to 64 characters for who lifted the ban. UrbeStack records the caller's name by default.

Use --address for one IP address or a CIDR network and --jail for a rule name. The values for --service are ssh, panel, mail, webmail, phpmyadmin, ftp, sites, repeat and own. Use own for rules outside UrbeStack's built-in service groups.

Use --q to match an IP address or a CIDR network, or to search the IP address and triggering log line for a case-sensitive substring. The search is limited to 200 characters. A network in --q takes precedence over a network in --address.

--since and --until set inclusive bounds on when the ban began. Both accept a UTC date such as 2026-09-17 or a UTC date and time such as 2026-09-17T14:02:00Z. A date alone means the start of the day for --since and the end of the day for --until.

## Same in the API

- [POST /security/bans/unblock](https://urbestack.com/docs/api/post-security-bans-unblock.md): Lift every active ban that matches the filters
- [DELETE /security/bans/{id}](https://urbestack.com/docs/api/delete-security-bans-id.md): Lift a ban by ID

## Command family: ban

- [urbestack-ban-add](https://urbestack.com/docs/commands/urbestack-ban-add.md): Records a timed ban on an IP address and enforces it in the firewall.
- [urbestack-ban-allow](https://urbestack.com/docs/commands/urbestack-ban-allow.md): Adds individual IP addresses from matching bans to the Allow list.
- [urbestack-ban-clear](https://urbestack.com/docs/commands/urbestack-ban-clear.md): Lifts every active ban and empties the firewall's ban set.
- [urbestack-ban-list](https://urbestack.com/docs/commands/urbestack-ban-list.md): Lists one page of matching bans within UrbeStack's retention period, newest first.
