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

# DeleteOntologyDirectory

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

## 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.net/textql/apis/textql-rpc-platform.md) · [All operations](https://skmtc.net/textql/apis/textql-rpc-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textql/textql-rpc-platform/revisions/31ce2b0c4427/schema)
