Skip to content

feat: add delete freight command#6165

Open
ChihebBENCHEIKH1 wants to merge 1 commit intoakuity:mainfrom
ChihebBENCHEIKH1:fix/add-delete-freight-cli
Open

feat: add delete freight command#6165
ChihebBENCHEIKH1 wants to merge 1 commit intoakuity:mainfrom
ChihebBENCHEIKH1:fix/add-delete-freight-cli

Conversation

@ChihebBENCHEIKH1
Copy link
Copy Markdown

Summary

Add a CLI command to delete Freight resources by name or alias.
The API and UI already support this operation but the CLI was missing it.

  • Supports deletion by name or alias (uses the existing FreightNameOrAlias API parameter)
  • Supports deleting multiple Freight resources in a single invocation
  • Follows the same patterns as the existing delete stage and delete warehouse commands

Usage

# Delete by name
kargo delete freight --project=my-project abc1234

# Delete by alias
kargo delete freight --project=my-project wonky-wombat

# Delete multiple
kargo delete freight --project=my-project abc1234 def5678
Closes #6162

Add a CLI command to delete Freight resources by name or alias.
The API and UI already support this operation but the CLI was missing it.

Closes akuity#6162

Signed-off-by: chiheb ben cheikh <bencheikh.chiheb@gmail.com>
@ChihebBENCHEIKH1 ChihebBENCHEIKH1 requested a review from a team as a code owner April 24, 2026 20:58
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 24, 2026

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit 644b201
🔍 Latest deploy log https://app.netlify.com/projects/docs-kargo-io/deploys/69ebd97f98e5500008714ad1
😎 Deploy Preview https://deploy-preview-6165.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ChihebBENCHEIKH1 ChihebBENCHEIKH1 changed the title cli: add delete freight command feat: add delete freight command Apr 24, 2026
@krancour
Copy link
Copy Markdown
Member

Thank you @ChihebBENCHEIKH1! I will look at this first thing on Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants