API operation · security group
DELETE
/security/jails/{name}
First published 3 Oct 2026
0.1.0Unchanged since publicationDelete a custom ban rule
Who may call it
AdministratorResellerCustomer
Token scope, any of
securityallAnswers200 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 serverParameters
namepath ·string, matching ^[a-z0-9][a-z0-9-]{0,31}$RequiredExample
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 sentence400'<n>' is a name fail2ban keeps for itself400<cur.name> is shipped with the panel: switch it off rather than remove it400A rule name is 1 to 32 lowercase letters, digits and dashes401Authentication requiredNo error of this operation matches.
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/