---
title: "Delete directories."
method: POST
path: "/directories/delete"
---

# Delete directories.

`POST /directories/delete`

## Request

- Base URL: `https://docs.vertica.com/v1`
- URL: `https://docs.vertica.com/v1/directories/delete`
- Auth: none declared
- TypeScript: <https://skmtc.dev/vertica/apis/node-management-agent-api/docs/directories/delete/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- DeleteDirParams: Parameters for deleting directories on the local host.
  - `directories` string[]
  - `force_delete` boolean
  - `sandbox` boolean

## Response `200`

A GenericMapResponse is the default response that is generated,
the response value is of type "Map" with both key and value of type "string".

- object

## Other responses

- `405`: A RFC7807Error is a generated error that follows RFC7807 specification.
- `500`: A GenericError is the default error message that is generated.

---

[API](https://skmtc.dev/vertica/apis/node-management-agent-api.md) - [All operations](https://skmtc.dev/vertica/apis/node-management-agent-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vertica/apis/node-management-agent-api/revisions/1d9449e2142a?raw)
