temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Support disabling and deletion of namespaces

Open rfwagner opened this issue 3 years ago • 7 comments

Temporal should support different stages of namespace deletion.

It is inevitable over time that namespaces are created with typos, are abandoned etc. These namespaces clutter up the UI and can cause confusion over whether they are active.

Possible stages of namespace deletion:

  1. Disable a namespace: make it no longer possible to submit new workflows to a namespace
  2. Disable and hide namespace: same as above, but also suppress the namespace from the "namespace list" API's
  3. Soft delete. Delete a namespace but do it in such a way that undelete is possible
  4. Hard delete. Remove the namespace from the db with no possibility of undelete

4 (and maybe 3?) would require a crawl of the db to ensure there are no references to the namespace, in the form of active or unarchived workflows.

rfwagner avatar Jun 23 '21 23:06 rfwagner

this ability would be super duper helpful for people learning about temporalio as it is easy to create namespace before thinking through or even understanding consequences of a naming strategy.

the ability to rename or delete namespaces is pretty important in that sense to make experimentation cheaper.

at this point it seems that my only option is to drop the temporal database and recreate it using the schema migration tools

davidalpert avatar Jun 30 '21 16:06 davidalpert

Just having requirements 1 and 2 would be extremely beneficial for operations in larger organizations, even if we have to wait longer for requirements 3 and 4.

tristan-instacart avatar Jul 08 '21 23:07 tristan-instacart

Any info on this issue? Associated forum link - https://community.temporal.io/t/how-to-delete-a-namespace/677

tsurdilo avatar Nov 22 '21 15:11 tsurdilo

Any update on this?

calum-stripe avatar Feb 23 '22 04:02 calum-stripe

+1

antstorm avatar Mar 16 '22 13:03 antstorm

+1

franklinkim avatar Jun 07 '22 12:06 franklinkim

+1

dwillett avatar Jul 22 '22 17:07 dwillett

Delete namespace functionality was released in 1.17.0.

alexshtin avatar Oct 20 '22 18:10 alexshtin

~~Was this actually released? The release page for 1.17.0 says not to use it, and even on 1.18.0 there is no delete command for tcl namespace.~~

Namespaces can be deleted using the temporal command:

temporal operator namespace delete my-namespace

kenske avatar Sep 18 '23 21:09 kenske