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

# Remove License Image

> Remove an image from a license

# Remove License Image

Remove a specific image from a talent license.

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE 'https://api.weir.ai/org/talent/license/lic_123456789/image/img_987654321' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'x-source: console'
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "message": "Image removed from license successfully",
    "status": "success"
  }
  ```
</ResponseExample>

## Path Parameters

<ParamField path="licenseId" type="string" required>
  Unique identifier of the license.
</ParamField>

<ParamField path="imageId" type="string" required>
  Unique identifier of the image to remove.
</ParamField>

## Usage Examples

<CodeGroup>
  ```javascript JavaScript theme={null}
  const removeLicenseImage = async (licenseId, imageId, accessToken) => {
    const response = await fetch(`https://api.weir.ai/org/talent/license/${licenseId}/image/${imageId}`, {
      method: 'DELETE',
      headers: {
        'Authorization': `Bearer ${accessToken}`,
        'x-source': 'console'
      }
    });
    if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
    return await response.json();
  };
  ```

  ```python Python theme={null}
  import requests

  def remove_license_image(license_id, image_id, access_token):
      response = requests.delete(
          f'https://api.weir.ai/org/talent/license/{license_id}/image/{image_id}',
          headers={
              'Authorization': f'Bearer {access_token}',
              'x-source': 'console'
          }
      )
      response.raise_for_status()
      return response.json()
  ```
</CodeGroup>
