delete-mapping.asciidoc 608 B

12345678910111213141516171819202122232425
  1. [[indices-delete-mapping]]
  2. == Delete Mapping
  3. Allow to delete a mapping (type) along with its data. The REST endpoints are
  4. [source,js]
  5. --------------------------------------------------
  6. [DELETE] /{index}/{type}
  7. [DELETE] /{index}/{type}/_mapping
  8. [DELETE] /{index}/_mapping/{type}
  9. --------------------------------------------------
  10. where
  11. [horizontal]
  12. `index`:: `* | _all | glob pattern | name1, name2, …`
  13. `type`:: `* | _all | glob pattern | name1, name2, …`
  14. Note, most times, it make more sense to reindex the data into a fresh
  15. index compared to delete large chunks of it.