Is it possible to cleanup project instead of archi...
# ask-the-community
a
Is it possible to cleanup project instead of archiving them? As in remove from DB and remove k8s namespaces. It looks like scheduler tries to schedule even archived projects and spits out errors
Copy code
Got error while scheduling rpc error: code = InvalidArgument desc = project [project-x] is not active
s
You can do that but you should be very careful when you're deleting a project from DB. Launch plans in archived projects get scheduled and this is a known error. Could you archive your launch plans as well for now?
a
Thanks, I’ll look into this. Would it be safe to remove k8s namespaces? It’s a bit of a zoo now.
s
Um, not very sure about that. cc @Ketan (kumare3)
Apologies for the delayed ping. What namespaces are you referring to? @Andrew Korzhuev You can delete them manually if there are many. But please be careful.
a
Those are k8s namespaces, we deploy to k8s and whenever a new project is created Flyte creates a namespace for it, where it puts the pods of the project.
I guess there is some internal mapping towards them and we were thinking that we should clean up all the remnants of it in the database first, but the only option it seems is to archive
s
Yeah, archive's the option. There's an issue to enable project deletions: https://github.com/flyteorg/flyte/issues/3234. Please upvote.
152 Views