> ## Documentation Index
> Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Sold Products

> Bulk-manage sold product (company product) records

<Note>
  **Early Access** - The Dcycle CLI is currently available for enterprise customers.
  [Contact us](/docs/support) to learn more about access.
</Note>

## Overview

Sold product records represent products manufactured or sold by your organization, used in Scope 3 Category 11 (Use of Sold Products) calculations. The CLI provides bulk deletion for cleanup and data management.

### Available Commands

| Command                               | Description                                  |
| ------------------------------------- | -------------------------------------------- |
| `dcy sold-product delete-bulk <file>` | Bulk delete sold product records from a file |

***

## Bulk Delete

Delete multiple sold products by providing a text file with one ID per line:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
dcy sold-product delete-bulk ids.txt --yes
```

Output:

```
deleted: 5
```

If some deletions fail:

```
2 failed: record not found
deleted: 3
failed: 2
```

### Flags

| Flag    | Short | Default | Description              |
| ------- | ----- | ------- | ------------------------ |
| `--yes` | `-y`  | `false` | Skip confirmation prompt |
| `--org` | —     | —       | Organization ID override |

The file should contain one sold-product UUID per line. Blank lines and duplicates are automatically skipped:

```text title="ids.txt" theme={"theme":{"light":"github-light","dark":"github-dark"}}
f1a2b3c4-d5e6-7890-abcd-ef1234567890
a1b2c3d4-e5f6-7890-abcd-ef1234567890
b9c0d1e2-f3a4-5678-bcde-f12345678901
```

### Examples

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Interactive confirmation
dcy sold-product delete-bulk ids.txt

# Skip confirmation
dcy sold-product delete-bulk ids.txt --yes

# JSON output
dcy sold-product delete-bulk ids.txt --yes --format json
```

***

## Typical Workflows

### Clean Up Sold Products

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Use the web interface or API to export sold product IDs, then:
cat product-ids.txt | wc -l    # preview count
dcy sold-product delete-bulk product-ids.txt --yes
```

## Next Steps

<CardGroup cols={2}>
  <Card title="Own Workforce" icon="hard-hat" href="/cli/own-workforce">
    Manage own workforce records
  </Card>

  <Card title="Custom Emission Factors" icon="sliders" href="/cli/custom-ef">
    Upload organization-specific emission factors
  </Card>

  <Card title="LCA Materials" icon="leaf" href="/cli/lca">
    Link materials to ecoinvent activities
  </Card>

  <Card title="Data Imports" icon="upload" href="/cli/imports">
    Bulk import CSV/Excel data with guided mapping
  </Card>
</CardGroup>
