> ## Documentation Index
> Fetch the complete documentation index at: https://developer.vanta.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete an auditor file from an information request

> Deletes an auditor file from an information request. Any auditor assigned
to the audit may delete any auditor's file, not only their own. Identify
the deleting auditor by `email`: they must be an active user in your audit
firm and assigned to the audit, otherwise this returns 403.

A completed audit returns 409; reopen the audit before deleting files.
Approving the request does not lock its files. An unknown or already
deleted file returns 404.

Lists no longer return the file or new download URLs for it. Download URLs
issued before the delete stay valid until they expire, at most one hour.

Rate limit: 50 requests / minute.



## OpenAPI

````yaml https://spec.speakeasy.com/vanta/vanta/conduct-an-audit-with-code-samples delete /audits/{auditId}/information-requests/{requestId}/auditor-files/{auditorFileId}
openapi: 3.0.0
info:
  title: Conduct an audit
  version: 1.0.0
  description: >-
    The Auditor API lets audit firms conduct audits from a tool outside of
    Vanta. Unlock data syncing with Vanta through this API.


    **Note for Vanta Gov (FedRAMP) customers:** Select `Vanta Gov (FedRAMP)`
    from the server dropdown to issue requests against
    `https://api.vanta-gov.com`. The OAuth token URL shown below defaults to the
    commercial host — replace it with `https://api.vanta-gov.com/oauth/token`.
  termsOfService: https://www.vanta.com/terms
  license:
    name: UNLICENSED
  contact:
    name: API Support
    url: https://help.vanta.com/
    email: support@vanta.com
servers:
  - url: https://api.vanta.com/v1
    description: Vanta (Commercial)
  - url: https://api.vanta-gov.com/v1
    description: Vanta Gov (FedRAMP)
security: []
paths:
  /audits/{auditId}/information-requests/{requestId}/auditor-files/{auditorFileId}:
    delete:
      tags:
        - Audits
      summary: Delete an auditor file from an information request
      description: >-
        Deletes an auditor file from an information request. Any auditor
        assigned

        to the audit may delete any auditor's file, not only their own. Identify

        the deleting auditor by `email`: they must be an active user in your
        audit

        firm and assigned to the audit, otherwise this returns 403.


        A completed audit returns 409; reopen the audit before deleting files.

        Approving the request does not lock its files. An unknown or already

        deleted file returns 404.


        Lists no longer return the file or new download URLs for it. Download
        URLs

        issued before the delete stay valid until they expire, at most one hour.


        Rate limit: 50 requests / minute.
      operationId: DeleteInformationRequestAuditorFile
      parameters:
        - in: path
          name: auditId
          required: true
          schema:
            type: string
        - in: path
          name: requestId
          required: true
          schema:
            type: string
        - in: path
          name: auditorFileId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteInformationRequestAuditorFileInput'
      responses:
        '204':
          description: No content
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: typescript
          label: DeleteInformationRequestAuditorFile
          source: |-
            import { Vanta } from "vanta-auditor-api-sdk";

            const vanta = new Vanta({
              bearerAuth: process.env["VANTA_BEARER_AUTH"] ?? "",
            });

            async function run() {
              await vanta.audits.deleteInformationRequestAuditorFile({
                auditId: "<id>",
                requestId: "<id>",
                auditorFileId: "<id>",
                deleteInformationRequestAuditorFileInput: {
                  email: "Pansy_Gibson85@yahoo.com",
                },
              });


            }

            run();
        - lang: java
          label: DeleteInformationRequestAuditorFile
          source: >-
            package hello.world;


            import com.vanta.vanta_auditor_api.Vanta;

            import
            com.vanta.vanta_auditor_api.models.components.DeleteInformationRequestAuditorFileInput;

            import
            com.vanta.vanta_auditor_api.models.operations.DeleteInformationRequestAuditorFileResponse;

            import java.lang.Exception;


            public class Application {

                public static void main(String[] args) throws Exception {

                    Vanta sdk = Vanta.builder()
                            .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
                        .build();

                    DeleteInformationRequestAuditorFileResponse res = sdk.audits().deleteInformationRequestAuditorFile()
                            .auditId("<id>")
                            .requestId("<id>")
                            .auditorFileId("<id>")
                            .deleteInformationRequestAuditorFileInput(DeleteInformationRequestAuditorFileInput.builder()
                                .email("Pansy_Gibson85@yahoo.com")
                                .build())
                            .call();

                    // handle response
                }
            }
components:
  schemas:
    DeleteInformationRequestAuditorFileInput:
      properties:
        email:
          type: string
          description: >-
            The email of the auditor deleting the file. They must be an active
            user in

            your audit firm and assigned to the audit.
      required:
        - email
      type: object
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

## Related topics

- [List auditor files for an information request](https://developer.vanta.com/api-reference/audits/list-auditor-files-for-an-information-request.md)
- [Delete an information request for an audit](https://developer.vanta.com/api-reference/audits/delete-an-information-request-for-an-audit.md)
- [Delete a comment for an information request](https://developer.vanta.com/api-reference/audits/delete-a-comment-for-an-information-request.md)
- [List evidence for an information request](https://developer.vanta.com/api-reference/audits/list-evidence-for-an-information-request.md)
- [Complete an auditor file upload and attach the file](https://developer.vanta.com/api-reference/audits/complete-an-auditor-file-upload-and-attach-the-file.md)
