# NamesSpace properties

**URL:** https://community.temporal.io/t/namesspace-properties/1822
**Category:** Community Support
**Tags:** java-sdk
**Created:** [March 26, 2021, 10:44am UTC](https://community.temporal.io/t/namesspace-properties/1822 "2021-03-26T10:44:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aswath\_Murugan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/aswath_murugan/32/162_2.png) [@Aswath\_Murugan](https://community.temporal.io/u/Aswath_Murugan)
#### Post date: [March 26, 2021, 10:44am UTC](https://community.temporal.io/t/namesspace-properties/1822/1 "2021-03-26T10:44:59Z")

</div>

Hi,

1. Is it possible to update existing Namespace properties like Retention period?

2. Is it possible to delete Namespace?Is possible to

3. What is min and max retention period is allowed?  
When i try to keep for a hour I am getting below error

---

<div class="post-metadata">

### Author: ![Wenquan\_Xing](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/wenquan_xing/32/362_2.png) [@Wenquan\_Xing](https://community.temporal.io/u/Wenquan_Xing)
#### Post date: [March 26, 2021, 5:13pm UTC](https://community.temporal.io/t/namesspace-properties/1822/2 "2021-03-26T17:13:09Z")

</div>

Q: Is it possible to update existing Namespace properties like Retention period?  
A: yes, use update namespace API

Q: Is it possible to delete Namespace  
A: this feature is not supported

Q: What is min and max retention period is allowed  
A: min 1 day, max 30 days

---

<div class="post-metadata">

### Author: ![Drew\_Hoskins](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/drew_hoskins/32/673_2.png) [@Drew\_Hoskins](https://community.temporal.io/u/Drew_Hoskins)
#### Post date: [September 16, 2021, 12:24am UTC](https://community.temporal.io/t/namesspace-properties/1822/3 "2021-09-16T00:24:47Z")

</div>

Wenquan,  
Has the max retention period been changed? We used to put 90 days but for a new namespace, perhaps after an upgrade, it’s not letting me.  
Also, can you please improve this error message? “A valid retention period is not set on request.” should tell us what the constraints are.  
Thank you.

---

<div class="post-metadata">

### Author: ![Wenquan\_Xing](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/wenquan_xing/32/362_2.png) [@Wenquan\_Xing](https://community.temporal.io/u/Wenquan_Xing)
#### Post date: [September 16, 2021, 2:28am UTC](https://community.temporal.io/t/namesspace-properties/1822/4 "2021-09-16T02:28:41Z")

</div>

the max 30 days retention is always there

> <https://github.com/temporalio/temporal/blob/v1.0.0/common/constants.go#L107>

> <https://github.com/temporalio/temporal/blob/v1.0.0/service/frontend/workflowHandler.go#L238>

there was however a bug in update namespace API which omits the retention check, which is fixed here: [Add missing retention days check on update namespace API by wxing1292 · Pull Request #1407 · temporalio/temporal · GitHub](https://github.com/temporalio/temporal/pull/1407)
