# Delete, rename , alias for types

**URL:** <https://discuss.elastic.co/t/delete-rename-alias-for-types/17872>\
**Category:** Elasticsearch\
**Created:** [June 3, 2014, 5:45am UTC](https://discuss.elastic.co/t/delete-rename-alias-for-types/17872 "2014-06-03T05:45:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikanth\_ramineni](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@srikanth\_ramineni](https://discuss.elastic.co/u/srikanth_ramineni)\
**Post date:** [June 3, 2014, 5:45am UTC](https://discuss.elastic.co/t/delete-rename-alias-for-types/17872/1 "2014-06-03T05:45:38Z")

</div>

Hi,

I want to add and modify few field types for a type. Is there any way to  
create alias to exiting type in index or rename the type in the index. Can  
any one provide me better way to do this.

Scenario:

i have two types in one index called contractindex  
below are two types  
contract  
contract1

I want to delete contract and rename contract1 to contract.

thanks,  
Srikanth.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/935da94f-1747-4776-9c20-15114769d6b5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/935da94f-1747-4776-9c20-15114769d6b5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 3, 2014, 6:03am UTC](https://discuss.elastic.co/t/delete-rename-alias-for-types/17872/2 "2014-06-03T06:03:08Z")

</div>

I'm afraid you have to reindex or deal with it on a client level.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 3 juin 2014 à 07:45, srikanth ramineni [ri.srikanth@gmail.com](mailto:ri.srikanth@gmail.com) a écrit :

Hi,

I want to add and modify few field types for a type. Is there any way to create alias to exiting type in index or rename the type in the index. Can any one provide me better way to do this.

Scenario:

i have two types in one index called contractindex  
below are two types  
contract  
contract1

I want to delete contract and rename contract1 to contract.

## thanks, Srikanth.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/935da94f-1747-4776-9c20-15114769d6b5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/935da94f-1747-4776-9c20-15114769d6b5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/E07B9D04-BF8C-43B4-AFD2-0CF75B219F62%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/E07B9D04-BF8C-43B4-AFD2-0CF75B219F62%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:25am UTC](https://discuss.elastic.co/t/delete-rename-alias-for-types/17872/3 "2017-07-06T01:25:06Z")

</div>


