API operation · files group
DELETE
/protected-folders/{id}
First published 4 Nov 2026
0.2.24Unchanged since publicationRemove HTTP Basic authentication from a protected folder
Who may call it
AdministratorResellerCustomer
Token scope, any of
filesallAnswers200 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 serverParameters
idpath ·integer, 1 or moreRequiredProtected 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 sentence400--path is required400--user is required400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400The folder id is a number400Username '<value>' is reserved401Authentication required404No protected folder <id>404User '<user>' not foundNo 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.2.24 on 4 Nov 2026.
urbestack.com/docs/api/delete-protected-folders-id/