> ## 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 Selected Prospects

> Deletes prospects so they stop appearing in campaign lists. Two modes: (1) When `areAllSelected` is false, each `targetUsersData` entry is a (userId, LinkedIn profile id) pair — the backend deletes every prospect record with that LinkedIn profile across every campaign owned by that user in the team. This is a person-wide deletion for that user, not a per-campaign or per-record operation. (2) When `areAllSelected` is true, `targetUsersData` is ignored and the scope is controlled by `variant` (and `listId`) — may cover many prospects. Posts awaiting approval can optionally be rejected.



## OpenAPI

````yaml https://api.goextrovert.com/client/v2/docs-json post /client/v2/prospects/delete-selected
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/prospects/delete-selected:
    post:
      tags:
        - Prospects
      summary: Delete Selected Prospects
      description: >-
        Deletes prospects so they stop appearing in campaign lists. Two modes:
        (1) When `areAllSelected` is false, each `targetUsersData` entry is a
        (userId, LinkedIn profile id) pair — the backend deletes every prospect
        record with that LinkedIn profile across every campaign owned by that
        user in the team. This is a person-wide deletion for that user, not a
        per-campaign or per-record operation. (2) When `areAllSelected` is true,
        `targetUsersData` is ignored and the scope is controlled by `variant`
        (and `listId`) — may cover many prospects. Posts awaiting approval can
        optionally be rejected.
      operationId: ProspectsClientApiController_deleteSelected
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteSelectedRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteSelectedResponseDto'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClientApiErrorResponseDto'
      security:
        - api-key: []
components:
  schemas:
    DeleteSelectedRequestDto:
      type: object
      properties:
        targetUsersData:
          type: array
          items:
            type: object
            properties:
              userId:
                type: string
                format: uuid
                description: >-
                  Owner user id — the teammate whose prospect records should be
                  deleted.
              targetUserProfileId:
                type: string
                description: >-
                  LinkedIn profile id of the person to delete. Every prospect
                  record with this LinkedIn profile owned by `userId` will be
                  deleted across all of that user's campaigns in the team.
            required:
              - userId
              - targetUserProfileId
          description: >-
            Persons to delete (as user + LinkedIn profile pairs). Ignored when
            `areAllSelected` is true.
        areAllSelected:
          type: boolean
          description: >-
            If true, the deletion scope is controlled by `variant` + `listId`
            and `targetUsersData` is ignored. If false, only the entries in
            `targetUsersData` are used (and `variant`/`listId` are ignored).
        rejectAllPostsActivities:
          type: boolean
          description: >-
            If true, rejects the affected prospects' posts currently in 'Need
            approval' status. Posts in 'Pending' status are not affected.
        variant:
          type: string
          enum:
            - all
            - list
            - campaign
          description: >-
            Scope of the bulk selection. Only used when `areAllSelected` is
            true; ignored otherwise. `all` — all visible prospects. `list` — a
            specific prospect list (use together with `listId`). `campaign` —
            every list in a campaign.
        listId:
          type: string
          description: >-
            List id that scopes the bulk selection when `variant` is `list`.
            Only used when `areAllSelected` is true.
          format: uuid
      required:
        - targetUsersData
        - areAllSelected
        - rejectAllPostsActivities
        - variant
    DeleteSelectedResponseDto:
      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

````