https://prefect.io logo
Title
b

Ben Muller

11/02/2022, 8:06 AM
Hey - say I have some CI process and it deploys a flow, its infra and storage on every deployment. Then I change the name of one of the deployments, or the flow name ( due to some new requirements ). Is there any recommended pattern besides manually cleaning everything up on the UI to delete the old resources that will continue to live in the workspace?
1
j

Jeff Hale

11/02/2022, 12:32 PM
Hi Ben. You can delete most resources from the CLI: blocks, flow-runs, and work queues - but not flows.
prefect block delete  --help
prefect flow-run delete  --help
prefect deployment delete --help
prefect work-queue delete --help
Alternatively, you could interact with the API directly to delete objects.
b

Ben Muller

11/02/2022, 2:25 PM
Thanks @Jeff Hale, yeah I know you can delete stuff I was more asking about patterns to identify resources that aren't being managed. Kind of like a git diff tool 😂 I might have to create something of my own!
j

Jeff Hale

11/02/2022, 2:26 PM
Ah - gotcha - thought you were asking about options other than using the UI. What you speak of does not yet exist, but sounds cool. Please do share if you create!
🚀 1
💯 1