---
updatedAt: 2025-02-14T23:07:13.000Z
agentTools:
  projectIndex: https://developer.modifi.com/llms.txt
---

# Delete a document.

You can delete a document previously attached to a financing quote

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Api Documentation",
    "version": "1.0",
    "title": "Api Documentation",
    "termsOfService": "urn:tos",
    "contact": {},
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0"
    }
  },
  "tags": [
    {
      "name": "Financing Quote",
      "description": "Collection of endpoints to manage the Financing Quote resource"
    }
  ],
  "paths": {
    "/companies/{companyIdentifier}/financingQuotes/{quoteIdentifier}/documents/{fileId}": {
      "delete": {
        "tags": [
          "Financing Quote"
        ],
        "summary": "Delete a document.",
        "description": "You can delete a document previously attached to a financing quote",
        "operationId": "deleteDocumentUsingDELETE",
        "parameters": [
          {
            "name": "companyIdentifier",
            "in": "path",
            "description": "The identifier of an existing company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quoteIdentifier",
            "in": "path",
            "description": "The identifier of an existing quote",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "description": "The ID of an existing document",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of documents assigned to the quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentsView"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "The document could not be deleted. Please refer to the error message to receive details",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerApiExceptionView"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartnerApiExceptionView"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden"
          }
        },
        "security": [
          {
            "MODIFI_Public_OAUTH2_Schema": [
              "partner:read",
              "partner:write"
            ]
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "//partner-api.sandbox.modifi.com/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "MODIFI_Public_OAUTH2_Schema": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://partner-auth.sandbox.modifi.com/api/v1/oauth2/token",
            "scopes": {
              "partner:read": "Request read access (GET)",
              "partner:write": "Request write access (POST, PATCH, etc)"
            }
          }
        }
      }
    },
    "schemas": {
      "DocumentView": {
        "type": "object",
        "properties": {
          "documentType": {
            "type": "string",
            "example": "INVOICE",
            "enum": [
              "INVOICE",
              "PURCHASE_ORDER",
              "BILL_OF_LADING",
              "AIRWAY_BILL",
              "CMR_CIM",
              "UNKNOWN"
            ]
          },
          "fileId": {
            "type": "string",
            "example": "a2caa44b-7835-46bf-807f-488e802ad2a9"
          }
        },
        "title": "DocumentView"
      },
      "DocumentsView": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentView"
            }
          }
        },
        "title": "DocumentsView"
      },
      "PartnerApiExceptionView": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "integer",
            "format": "int32"
          },
          "httpStatus": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
          }
        },
        "title": "PartnerApiExceptionView"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```