Hi, How do I delete a registered task or workflow ...
# ask-the-community
y
Hi, How do I delete a registered task or workflow in a specific project-domain? First, I checked the CLI help. If you look at the
flytectl --help
, it says that you can delete tasks,worfklows.
Copy code
delete      Terminates/deletes various Flyte resources such as tasks, workflows, launch plans, executions, and projects.
But in the available command of
delete
, I don't see an option to actually delete tasks or workflows.
Copy code
Usage:
  flytectl delete [command]

Available Commands:
  cluster-resource-attribute Deletes matchable resources of cluster attributes.
  execution                  Terminates/deletes execution resources.
  execution-cluster-label    Deletes matchable resources of execution cluster label.
  execution-queue-attribute  Deletes matchable resources of execution queue attributes.
  plugin-override            Deletes matchable resources of plugin overrides.
  task-resource-attribute    Deletes matchable resources of task attributes.
  workflow-execution-config  Deletes matchable resources of workflow execution config.
k
hi @yujinlee you cannot delete a task or a workflow, just hide it. It is called archive. https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_update_task-meta.html
Copy code
flytectl update  task -d development -p flytectldemo core.advanced.run_merge_sort.merge --archive
https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_update_workflow-meta.html
Copy code
flytectl update workflow -p flytectldemo -d development  core.advanced.run_merge_sort.merge_sort --archive
y
@Ketan (kumare3) I got it! Thank you for your reply.
k
absolutely
j
So i tried this out but i keep getting invalid flag option
Copy code
ERRO[0000] unknown flag: --archive
the actual command i tried is this
Copy code
flytectl update workflow -p balrog -d development balrog.workflows.bcl2bam.bcl2fastq_workflow.bcl2fastq_workflow --archive
im using the latest flytectl
v0.5.28
it looks syntactically same as in the example in the doc
any idea what went wrong here 🤔
ohhh its
workflow-meta
i think above page needs to be updated on the first 2 example 😅 https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_update_workflow-meta.html
139 Views