Skip to content
Connect an agent

Organisations

Remove a folder

Removes the folder and every folder inside it from the folders made in the portal.

DELETE/orgs/{org}/folders

TL;DR

QuestionAnswer
What does it do?Remove a folder.
What does it take?org in the path, and path in the query string.
What does it return?Status 204 with no body.
What can go wrong?400 the path breaks the folder rule (validation.failed; details says why); 401 not signed in; 403 the role may not (orgs.forbidden), a rule keeps the folder from the caller (orgs.folder_restricted), or the request came from an origin that may not make changes; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Removes the folder and every folder inside it from the folders made in the portal. Diagrams filed there are not touched. Owner, admin or member.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Query parameters

FieldTypeRequiredDescription
pathstringyesFolder names from the outermost in, joined with a slash, such as "Payments/Checkout", with no slash at either end. Folder names may use letters A to Z, numbers, spaces, - and _. No space at either end of a name and never two together. Up to 5 levels and 40 characters a name.

Responses

StatusMeaningBody
204The folder is gone, or was never made.none
400The path breaks the folder rule (validation.failed; details says why).ErrorResponse
401Not signed in.ErrorResponse
403The role may not (orgs.forbidden), a rule keeps the folder from the caller (orgs.folder_restricted), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools