Hi <@U06RKAMK0UC> how to delete registered version
# ask-ai
a
Hi @ancient-wolf-19325 how to delete registered version
a
To delete a registered version of an artifact in Flyte, use the
Artifact.delete()
method from the Python SDK, or the appropriate CLI command for other resource types. For example, to delete an artifact version, retrieve it with
Artifact.get(name, version)
and then call
.delete()
on the returned object. For CLI, use commands like
flyte delete app
,
flyte delete secret
, or
flyte delete trigger
with the resource name and optional project/domain flags, but there is no explicit CLI command for deleting a specific artifact version—this is done via the SDK only. According to the documentation, deletion can be performed synchronously or asynchronously using
.aio()
for async calls. Example (Python SDK):
Copy code
from flyte.remote import Artifact
artifact = Artifact.get(name="my-artifact", version="v1.0.0")
artifact.delete()
Would you like more detail on deleting other resource types or using the CLI? Sources: - Artifact Python SDK reference 👍 0 button 👎 0 button 💡 Hint: Mention @herald in the thread for followups.
a
see, i registered a code into flyte Now i want to delete or remove from that environment @ancient-wolf-19325
a
It seems likely that Flyte does not provide a direct command to delete or unregister a code bundle or environment once registered. The CLI and SDK support deleting certain resources (apps, secrets, triggers, etc.), but there is no explicit support for deleting registered code bundles or environments themselves—these are typically immutable for reproducibility and audit purposes. You can delete related resources like apps or tasks, but the underlying code bundle remains in storage and is not removed by these actions. If you want to remove an app or environment, you can use
flyte delete app <name> -p <project> -d <domain>
for apps, but for code bundles or environments, deletion is not mentioned in the available commands or SDK methods. Would you like more detail on deleting specific resource types or managing code versions? Sources: - https://www.union.ai/docs/v2/union/llms-full.txt 👍 0 button 👎 0 button 💡 Hint: Mention @herald in the thread for followups.
a
can't we delete ? version-id