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

# Remove a document type's files from a submission

> Removes every file uploaded under one document type from a submission. If
the document type has no files, nothing changes and the call still
succeeds.

Requires the `enrollment-submissions` scope.




## OpenAPI

````yaml /api-reference/openapi.json delete /enrollment/submissions/{enrollmentRecordId}/documents/{documentType}
openapi: 3.1.0
info:
  title: Scout API
  version: 1.0.0
  description: >-
    Programmatic access to Scout rostering data (IMS OneRoster 1.1 & 1.2) and
    related endpoints, authenticated with an API access token.
servers:
  - url: https://api.teachwithscout.com/v1
    description: Production
security: []
tags:
  - name: Access tokens
  - name: Attendance
  - name: Enrollment invitations
  - name: Enrollment submissions
  - name: Master agreements
  - name: Staff associations
  - name: OneRoster 1.1
  - name: OneRoster 1.2
paths:
  /enrollment/submissions/{enrollmentRecordId}/documents/{documentType}:
    delete:
      tags:
        - Enrollment submissions
      summary: Remove a document type's files from a submission
      description: >
        Removes every file uploaded under one document type from a submission.
        If

        the document type has no files, nothing changes and the call still

        succeeds.


        Requires the `enrollment-submissions` scope.
      parameters:
        - in: path
          name: enrollmentRecordId
          required: true
          description: The submission's id.
          schema:
            type: string
        - in: path
          name: documentType
          required: true
          description: The document type whose files to remove.
          schema:
            $ref: '#/components/schemas/EnrollmentDocumentType'
      responses:
        '200':
          description: The document type's files were removed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                required:
                  - success
        '400':
          description: '`documentType` isn''t a document type.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 400
                  message:
                    type: string
        '401':
          description: The access token is missing, invalid, expired, or revoked.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 401
                  error:
                    type: string
                  code:
                    type: string
                    example: INVALID_ACCESS_TOKEN
                required:
                  - status
                  - error
                  - code
        '403':
          description: >-
            The request didn't use an API access token, or the token doesn't
            have the `enrollment-submissions` scope.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: false
                  message:
                    type: string
                required:
                  - success
                  - message
        '404':
          description: No submission with this id was created by your API client.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 404
                  message:
                    type: string
        '409':
          description: >-
            The submission can no longer be changed: it's waiting for staff
            review, it's approved, or it was approved before staff sent it back.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 409
                  message:
                    type: string
      security:
        - accessToken: []
components:
  schemas:
    EnrollmentDocumentType:
      type: string
      description: >-
        A document type the enrollment form collects files for. One of the
        [Enrollment document
        type](/api-reference/code-sets/enrollment-document-type) values.
  securitySchemes:
    accessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer access token from `POST /oauth/token` (OAuth 2.0 client
        credentials; the OneRoster `/ims/oneroster/v1p1/token` and `/v1p2/token`
        URLs are aliases). Send it as `Authorization: Bearer <access_token>`.
        Tokens expire after 1 hour and carry your API client's granted scopes —
        an endpoint outside them returns 403.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.