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

---
id: a04c69d6-32d6-48aa-a58b-958fc2dee2e1
---

# Start cleanup for markup

> Initiate an asynchronous cleanup process for markup in the CRM. This endpoint is useful for managing and maintaining the integrity of markup data by removing unnecessary or obsolete entries. The request triggers a task that runs in the background, and the response includes a task locator for tracking the progress.

> [accordion] Supported products

> [accordion] Required Scopes


## OpenAPI

````yaml specs/2027-03-beta/crm-smart-transfer-v2027-03-beta.json POST /crm/smart-transfer/2027-03-beta/markups/cleanup/async
openapi: 3.0.1
info:
  title: CRM Smart Transfer
  description: Basepom for all HubSpot Projects
  version: 2027-03-beta
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Account
  - name: Audit
  - name: Markup
  - name: Transfer
  - name: Transfer Revert
paths:
  /crm/smart-transfer/2027-03-beta/markups/cleanup/async:
    post:
      tags:
        - Markup
      summary: Start cleanup for markup
      description: >-
        Initiate an asynchronous cleanup process for markup in the CRM. This
        endpoint is useful for managing and maintaining the integrity of markup
        data by removing unnecessary or obsolete entries. The request triggers a
        task that runs in the background, and the response includes a task
        locator for tracking the progress.
      operationId: post-/crm/smart-transfer/2027-03-beta/markups/cleanup/async
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarkupCleanupInput'
        required: true
      responses:
        '202':
          description: accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskLocator'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - crm.smart_transfer.transfer.write
components:
  schemas:
    MarkupCleanupInput:
      required:
        - markupId
      type: object
      properties:
        markupId:
          type: string
          description: >-
            The unique identifier for the markup to be cleaned up. It is a
            required string property.
    TaskLocator:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: The unique identifier for the task, represented as a string.
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            An object containing key-value pairs where each key is a link name
            and each value is a URI string associated with the task.
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: The error category.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            Context about the error condition, represented as an object with
            additional properties.
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A unique identifier for the request. Include this value with any
            error reports or support tickets. It is formatted as a UUID.
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: >-
            Further information about the error, represented as an array of
            ErrorDetail objects.
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            A map of link names to associated URIs containing documentation
            about the error or recommended remediation steps.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate.
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error.
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: The status code associated with the error detail.
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            Context about the error condition, represented as an object with
            additional properties that are arrays of strings.
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: The name of the field or parameter in which the error was found.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate. This is a required property.
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error.
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            crm.smart_transfer.audit.read: ''
            crm.smart_transfer.audit.write: ''
            crm.smart_transfer.revert.read: ''
            crm.smart_transfer.revert.write: ''
            crm.smart_transfer.transfer.read: ''
            crm.smart_transfer.transfer.write: ''

````