Skip to main content

Overview

flytectl delete terminates running executions and removes matchable resource attribute overrides from FlyteAdmin.
flytectl delete <resource> [name ...] -p <project> -d <domain> [flags]

Subcommands

SubcommandAliasesDescription
delete executionexecutionsAbort one or more running executions
delete task-resource-attributetask-resource-attributesRemove task resource attribute overrides
delete cluster-resource-attributecluster-resource-attributesRemove cluster resource attribute overrides
delete execution-cluster-labelexecution-cluster-labelsRemove execution cluster label overrides
delete execution-queue-attributeexecution-queue-attributesRemove execution queue attribute overrides
delete plugin-overrideplugin-overridesRemove plugin override settings
delete workflow-execution-configRemove workflow execution config overrides

delete execution

Abort one or more non-terminal executions. Executions that are already in a terminal state (FAILED, ABORTED, or SUCCEEDED) are unaffected.
# Terminate a single execution
flytectl delete execution c6a51x2l9e -d development -p flytesnacks

# Terminate multiple executions in one command
flytectl delete execution eeam9s8sny p4wv4hwgc4 -d development -p flytesnacks
After termination, verify the state:
flytectl get execution -d development -p flytesnacks
 ------------ ----------------------------------------- ---------- ----------- ------------------------------- ---------------
| NAME (7)   | WORKFLOW NAME                           | TYPE     | PHASE     | STARTED                       | ELAPSED TIME  |
 ------------ ----------------------------------------- ---------- ----------- ------------------------------- ---------------
| c6a51x2l9e | recipes.core.basic.lp.go_greet          | WORKFLOW | ABORTED   | 2021-02-17T08:13:04.680476300Z | 15.540361300s |
 ------------ ----------------------------------------- ---------- ----------- ------------------------------- ---------------
| eeam9s8sny | recipes.core.basic.lp.go_greet          | WORKFLOW | ABORTED   | 2021-02-17T08:14:04.803084100Z | 42.306385500s |
 ------------ ----------------------------------------- ---------- ----------- ------------------------------- ---------------
| p4wv4hwgc4 | recipes.core.basic.lp.go_greet          | WORKFLOW | ABORTED   | 2021-02-17T08:14:27.476307400Z | 19.727504400s |
 ------------ ----------------------------------------- ---------- ----------- ------------------------------- ---------------
Flags:
FlagDescription
--dryRunLog the termination request without executing it
Termination is irreversible. You can relaunch a terminated execution using flytectl create execution --relaunch <name>.

Matchable attribute deletion

Matchable resource attributes can be removed at project, project+domain, or project+domain+workflow scope using an attribute file. Use flytectl get <attribute> first to generate the file, then pass it to delete.
flytectl delete task-resource-attribute --attrFile tra.yaml
Example tra.yaml:
domain: development
project: flytesnacks
defaults:
  cpu: "1"
  memory: "150Mi"
limits:
  cpu: "2"
  memory: "450Mi"
flytectl delete cluster-resource-attribute --attrFile cra.yaml
Example cra.yaml:
domain: development
project: flytesnacks
attributes:
  foo: "bar"
  buzz: "lightyear"
flytectl delete execution-cluster-label --attrFile ecl.yaml
Example ecl.yaml:
domain: development
project: flytesnacks
value: foo
flytectl delete execution-queue-attribute --attrFile eqa.yaml
flytectl delete plugin-override --attrFile po.yaml
flytectl delete workflow-execution-config --attrFile wec.yaml
Common attribute file flags:
FlagDescription
--attrFilePath to the attribute YAML file (required)
--dryRunPrint the request without executing it
--forceSkip the confirmation prompt

Build docs developers (and LLMs) love