---
title: "DeleteOntologyDirectory"
method: POST
path: "/textql.rpc.public.patches.OntologyManagementService/DeleteOntologyDirectory"
tags: ["OntologyManagementService"]
---

# DeleteOntologyDirectory

`POST /textql.rpc.public.patches.OntologyManagementService/DeleteOntologyDirectory`

## Request

- The document declares no server URL.
- Auth: none required

## Headers

- `Connect-Protocol-Version` 1, required: Define the version of the Connect protocol
- `Connect-Timeout-Ms` number: Define the timeout, in ms

## Request body

- TextqlRpcPublicPatchesDeleteOntologyDirectoryRequest
  - `path` string
  - `commitMessage` string, nullable
  - `recursive` boolean: When true, delete the directory and all of its contents (files and subdirectories) in a single atomic commit. The caller must have write access to every nested subdirectory. When false (default), the directory must be empty of non-reserved entries.

## Response `200`

Success

- GoogleProtobufEmpty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/textql/apis/textql-rpc-platform.md) - [All operations](https://skmtc.dev/textql/apis/textql-rpc-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/textql/apis/textql-rpc-platform/revisions/31ce2b0c4427?raw)
