---
updatedAt: 2026-06-30T19:02:30.000Z
agentTools:
  projectIndex: https://docs.cfx.to/llms.txt
---

# Delete an organization document

Soft-delete a document and remove its stored file.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Organization API",
    "description": "Interact with Organizations",
    "termsOfService": "",
    "contact": {
      "name": "API Owner",
      "email": "api@cfxlabs.com"
    },
    "license": {
      "name": "",
      "url": ""
    },
    "version": "v1",
    "summary": "CFX Organization API"
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "name": "x-api-key",
        "type": "apiKey",
        "in": "header"
      },
      "ApiSecretAuth": {
        "name": "x-api-secret",
        "type": "apiKey",
        "in": "header"
      }
    }
  },
  "paths": {
    "/v1/organization/{organizationId}/documents/{documentId}": {
      "delete": {
        "summary": "Delete an organization document",
        "tags": [
          "Organization Documents"
        ],
        "description": "Soft-delete a document and remove its stored file.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "example": "org_VfsdSMtd8UdgxCgTnz0tm",
            "in": "path",
            "name": "organizationId",
            "required": true,
            "description": "The unique Organization ID provided upon organization registration"
          },
          {
            "schema": {
              "type": "string"
            },
            "example": "doc_JITym5MfDBJ4jOqiji2hP",
            "in": "path",
            "name": "documentId",
            "required": true,
            "description": "The unique document ID"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "message"
                  ],
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Status message",
                      "example": "OK"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The service cannot understand the request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INVALID_REQUEST"
                      ]
                    },
                    "message": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {},
                        "additionalProperties": true
                      }
                    }
                  },
                  "title": "INVALID_REQUEST",
                  "description": "The service cannot understand the request"
                }
              }
            }
          },
          "401": {
            "description": "The access to this resource has been denied",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "UNAUTHORIZED"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "title": "UNAUTHORIZED",
                  "description": "The access to this resource has been denied"
                }
              }
            }
          },
          "403": {
            "description": "The credentials are valid but the caller is not permitted to transact",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "FORBIDDEN"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "title": "FORBIDDEN",
                  "description": "The credentials are valid but the caller is not permitted to transact"
                }
              }
            }
          },
          "404": {
            "description": "The resource was not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "NOT_FOUND"
                      ]
                    },
                    "message": {
                      "type": "string"
                    }
                  },
                  "title": "NOT_FOUND",
                  "description": "The resource was not found"
                }
              }
            }
          },
          "default": {
            "description": "Catch-all error response for any unexpected internal errors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "message"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "INTERNAL"
                      ]
                    },
                    "message": {
                      "type": "string",
                      "enum": [
                        "An unexpected internal error has occurred"
                      ]
                    }
                  },
                  "title": "INTERNAL",
                  "description": "Catch-all error response for any unexpected internal errors"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.dev.cfx.to",
      "description": "Customer Sandbox"
    },
    {
      "url": "https://api.cfx.to",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": [],
      "ApiSecretAuth": []
    }
  ],
  "tags": [
    {
      "name": "Organization Documents",
      "description": "Upload and manage KYB documents for an organization."
    }
  ],
  "externalDocs": {
    "description": "Find out more about CFX",
    "url": "https://www.cfxlabs.com/"
  }
}
```