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

/protected-folders/{id}

First published 4 Nov 20260.2.24Unchanged since publication

Remove HTTP Basic authentication from a protected folder

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

UrbeStack deletes the folder users and retains the directory and its files. It regenerates the affected virtual host configurations and reloads Apache immediately. The response includes path and deleted.

The API returns 400 if id is invalid and 404 if the protected folder does not exist.

As a command

Run as root on the server

Parameters

idpath ·integer, 1 or moreRequired
Protected folder ID returned by GET /protected-folders.

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/protected-folders/1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "deleted": true,
  "path": "public_html/index.php"
}

Errors

8 errors, each a status and a sentence
400--path is required
400--user is required
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400The folder id is a number
400Username '<value>' is reserved
401Authentication required
404No protected folder <id>
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.2.24 on 4 Nov 2026.
urbestack.com/docs/api/delete-protected-folders-id/