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

/ftp/accounts/{name}

First published 3 Oct 20260.1.0Unchanged since publication

Delete an FTP account

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

UrbeStack removes the login from ProFTPD immediately and retains the account's directory and files. The API returns 400 if the login format is invalid and 404 if the account does not exist.

As a command

Run as root on the server

Parameters

namepath ·FtpAccountNameRequired
FTP login in the form <name>@<domain>, with @ encoded as %40.

Example

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

Errors

10 errors, each a status and a sentence
400--<_> is required
400An FTP account is named <name>@<domain>
400Domain name required
400Domain name too long
400Invalid domain name
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Username '<value>' is reserved
401Authentication required
404The FTP account <login> does not exist
404User '<user>' not found
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-ftp-accounts-name/