Skip to main content
Early Access - The Dcycle CLI is currently available for enterprise customers. Contact us to learn more about access.

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

CommandDescription
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:
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

FlagShortDefaultDescription
--yes-yfalseSkip confirmation prompt
--orgOrganization ID override
The file should contain one sold-product UUID per line. Blank lines and duplicates are automatically skipped:
ids.txt
f1a2b3c4-d5e6-7890-abcd-ef1234567890
a1b2c3d4-e5f6-7890-abcd-ef1234567890
b9c0d1e2-f3a4-5678-bcde-f12345678901

Examples

# 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

# 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

Own Workforce

Manage own workforce records

Custom Emission Factors

Upload organization-specific emission factors

LCA Materials

Link materials to ecoinvent activities

Data Imports

Bulk import CSV/Excel data with guided mapping