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

# Delete Inactive Prospects In List

> Deletes prospects with inactive LinkedIn profiles in the given scope. The prospect list itself is kept. Scope: pass `listId` to narrow to a single list, or `campaignId` to apply to every list in the campaign; at least one must be provided.



## OpenAPI

````yaml https://api.goextrovert.com/client/v2/docs-json post /client/v2/prospect-list/delete-inactive
openapi: 3.0.0
info:
  title: Extrovert Client API
  description: >-
    Public API for Extrovert platform integration. Use your API key for
    authentication.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.goextrovert.com/
    description: API Server
security: []
tags: []
paths:
  /client/v2/prospect-list/delete-inactive:
    post:
      tags:
        - Prospects
      summary: Delete Inactive Prospects In List
      description: >-
        Deletes prospects with inactive LinkedIn profiles in the given scope.
        The prospect list itself is kept. Scope: pass `listId` to narrow to a
        single list, or `campaignId` to apply to every list in the campaign; at
        least one must be provided.
      operationId: ProspectListClientApiController_deleteInactive
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteInactiveRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteInactiveResponseDto'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApiErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    DeleteInactiveRequestDto:
      type: object
      properties:
        variant:
          type: string
          enum:
            - all
            - list
            - campaign
          description: >-
            Scope of the operation. `all` — all visible prospects. `list` — a
            specific prospect list (use together with `listId`). `campaign` —
            every list in a campaign (use together with `campaignId`).
        rejectAllPostsActivities:
          type: boolean
          description: >-
            Whether pending posts of the affected prospects should also be
            rejected.
        listId:
          type: string
          description: Prospect list id — scopes the delete to a single list.
          format: uuid
        campaignId:
          type: string
          description: >-
            Campaign id — scopes the delete to every list in the campaign when
            `listId` is not provided.
          format: uuid
      required:
        - variant
    DeleteInactiveResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          enum:
            - success
        data:
          description: No response payload
          nullable: true
          enum:
            - null
          example: null
        message:
          type: string
          description: Success message
          example: Operation completed successfully
      required:
        - status
        - data
        - message
    ClientApiErrorResponseDto:
      type: object
      properties:
        status:
          type: string
          description: Response status
          example: error
          enum:
            - error
        data:
          type: object
          description: Response data
          example: null
        message:
          type: string
          description: Error message
          example: An error occurred while processing the request
      required:
        - status
        - data
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: X-API-Key
      description: API Key for authentication

````