Skip to content

Commit

Permalink
docs(cli): add example for argo archive delete (#13675)
Browse files Browse the repository at this point in the history
Signed-off-by: leehosu <[email protected]>
Signed-off-by: l2h <[email protected]>
  • Loading branch information
leehosu authored Sep 30, 2024
1 parent 5f70eee commit 2c3423e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/argo/commands/archive/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ func NewDeleteCommand() *cobra.Command {
command := &cobra.Command{
Use: "delete UID...",
Short: "delete a workflow in the archive",
Example: `# Delete an archived workflow by its UID:
argo archive delete abc123-def456-ghi789-jkl012
`,
Run: func(cmd *cobra.Command, args []string) {
ctx, apiClient := client.NewAPIClient(cmd.Context())
serviceClient, err := apiClient.NewArchivedWorkflowServiceClient()
Expand Down
8 changes: 8 additions & 0 deletions docs/cli/argo_archive_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ delete a workflow in the archive
argo archive delete UID... [flags]
```

### Examples

```
# Delete an archived workflow by its UID:
argo archive delete abc123-def456-ghi789-jkl012
```

### Options

```
Expand Down

0 comments on commit 2c3423e

Please sign in to comment.