---
title: "DeleteResourceAsync"
url: "https://devportal.jilson.dev/apis/document-generator-pkce-flow-1/versions/c7bf5731-4982-4310-bcfe-512415c7d543/operations/DeleteResourceAsync"
---

> Full API specification: https://devportal.jilson.dev/apis/document-generator-pkce-flow-1/versions/c7bf5731-4982-4310-bcfe-512415c7d543.md

# DeleteResourceAsync

`POST` `/v1/documentTemplates/packaging/deleteResource`

Operation ID: `DeleteResourceAsync`

## Request body

Content types: `application/json-patch+json`, `application/json`, `text/json`, `application/*+json`

## Responses

- `401` - Unauthorized

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Document Generator API
  version: "1.0"
paths:
  /v1/documentTemplates/packaging/deleteResource:
    post:
      tags:
        - Packaging
      operationId: DeleteResourceAsync
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: "#/components/schemas/DeleteResourceRequest"
          application/json:
            schema:
              $ref: "#/components/schemas/DeleteResourceRequest"
          text/json:
            schema:
              $ref: "#/components/schemas/DeleteResourceRequest"
          application/*+json:
            schema:
              $ref: "#/components/schemas/DeleteResourceRequest"
      responses:
        "401":
          description: Unauthorized
security:
  - https://auth.sharefiletest.io:
      - docgen:all.full
      - docgen:doctemplate.packaging
      - docgen:doctemplate.template-provider
      - docgen:doctemplate.permanentdelete
components:
  schemas:
    DeleteResourceRequest:
      required:
        - rid
      type: object
      properties:
        rid:
          type: string
      additionalProperties: false
  securitySchemes:
    https://auth.sharefiletest.io:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://auth.sharefiletest.io/connect/authorize
          tokenUrl: https://auth.sharefiletest.io/connect/token
          scopes:
            docgen:all.full: Full access to Doc Gen APIs.
            docgen:doctemplate.packaging: Doc Template Packaging APIs Access
            docgen:doctemplate.template-provider: Document Templates full access to template provider
            docgen:doctemplate.permanentdelete: Access to permanently delete document template and metadata
```
