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

# Remove a Census v2 W-2 upload

> Removes a draft W-2 upload, hides its file, and unlinks a matching employee census source.



## OpenAPI

````yaml /api-reference/cx/swagger.json post /cp/{client}/tasks/{task}/census-v2/w2/{w2}/_remove
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /cp/{client}/tasks/{task}/census-v2/w2/{w2}/_remove:
    post:
      tags:
        - client-portal
      summary: Remove a Census v2 W-2 upload
      description: >-
        Removes a draft W-2 upload, hides its file, and unlinks a matching
        employee census source.
      parameters:
        - description: Client ID
          name: client
          in: path
          required: true
          schema:
            type: string
        - description: Task ID
          name: task
          in: path
          required: true
          schema:
            type: string
        - description: W-2 upload ID
          name: w2
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

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