<@U06HBGN1SA0> Hi all, How can we delete a launch ...
# ask-ai
@Glime Hi all, How can we delete a launch plan when there are too many existing launch plans
To manage launch plans in Flyte, including deleting or archiving them when there are too many, you can use the
command-line tool. While the direct deletion of launch plans is not explicitly mentioned in the provided context, archiving them is a common approach to effectively remove them from active consideration without permanently deleting them from the system. This can help clean up the list of launch plans you actively manage. To archive a launch plan, you can use the
flytectl update launchplan
command with the
flag. This command sets the launch plan's state to inactive, which is akin to removing it from active use but retains its record. Here's how you might use the command:
Copy code
flytectl update launchplan -p [your_project] -d [your_domain] --archive --version [version_of_launchplan] [name_of_launchplan]
, and
with your specific project name, domain, launch plan version, and launch plan name. It's important to note that while archiving does not permanently delete the launch plan, it effectively removes it from active schedules and execution plans, helping to manage clutter when you have too many launch plans. For more detailed management or automation of this process, consider using
, which also supports activating and archiving launch plans as per the recent updates mentioned in the context. This might be particularly useful if you're looking to manage launch plans programmatically within Python scripts or applications. --- This is an AI-generated response, take its recommendations with caution. Please help us improve the model accuracy by giving this response a thumbs up/thumbs down reaction. Sources https://github.com/flyteorg/flyte/issues/3804/ https://github.com/flyteorg/flyte/issues/4563/ 👍 button 👎 button