acoustic-parrot-22802
09/10/2026, 10:14 AMancient-wolf-19325
09/10/2026, 10:14 AMArtifact.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):
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.acoustic-parrot-22802
09/10/2026, 10:15 AMancient-wolf-19325
09/10/2026, 10:15 AMflyte 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.acoustic-parrot-22802
09/10/2026, 10:16 AM