# DELETE /ftp/accounts/{name}

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

UrbeStack release 0.2.35 API operation in the files group.

Delete an FTP account

- Who may call it: administrator, reseller, customer
- Token scope, any of: files, all
- Answers: 200 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

- [urbestack-ftp-account-del](https://urbestack.com/docs/commands/urbestack-ftp-account-del.md): Deletes the FTP account identified by the full NAME@DOMAIN login in --name and owned by the customer in --user.

## Parameters

- `name` (path, FtpAccountName, required): FTP login in the form <name>@<domain>, with @ encoded as %40.

## 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/ftp/accounts/alice" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "deleted": true,
  "name": "alice"
}
```

## Errors

- 400: --<_> is required
- 400: An FTP account is named <name>@<domain>
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid domain name
- 400: Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
- 400: Username '<value>' is reserved
- 401: Authentication required
- 404: The FTP account <login> does not exist
- 404: User '<user>' not found
