---
title: "Discard lead"
method: DELETE
path: "/lead/v2/leads/{leadId}"
tags: ["AppResellerLeads"]
---

# Discard lead

`DELETE /lead/v2/leads/{leadId}`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/lead/v2/leads/{leadId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/lead/v2/leads/:leadId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes or disqualifies a lead (depending on type and assignment)

## Path parameters

- `leadId` string, required

## Query parameters

- `context` 'RESELLER' | 'REFERRAL' | 'DEVELOPER' | 'RESELLER_MANAGER' | 'PARTNER' | 'ANONYMOUS' | 'CHANNEL_ADMIN', required
- `companyId` string, required

## Response `204`

Lead deleted or disqualified

## Other responses

- `400`: Error attempting to discard a lead that cannot be deleted or disqualified
- `401`: Unauthorized
- `404`: Not Found

## Changes

- **2026-11-06** `1fc240f06971`: 1 info
  - added the new enum value `CHANNEL_ADMIN` to the `query` request parameter `context`

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/lead/v2/leads/:leadId/delete.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
