Get your free beta license ↗
API operation · security group
DELETE

/security/jails/{name}

First published 3 Oct 20260.1.0Unchanged since publication

Delete a custom ban rule

Who may call it
AdministratorResellerCustomer
Token scope, any of
securityall
Answers200 OK

To disable a rule shipped with UrbeStack, run urbestack-jail-set with --enabled off. UrbeStack returns 400 if name is invalid, is one of the reserved names default and includes, or identifies a rule shipped with UrbeStack. An unknown rule returns 404.

As a command

Run as root on the server

Parameters

namepath ·string, matching ^[a-z0-9][a-z0-9-]{0,31}$Required

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/security/jails/alice" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "name": "alice",
  "removed": 1
}

Errors

4 errors, each a status and a sentence
400'<n>' is a name fail2ban keeps for itself
400<cur.name> is shipped with the panel: switch it off rather than remove it
400A rule name is 1 to 32 lowercase letters, digits and dashes
401Authentication required
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-security-jails-name/