# Python Client: drop secondary index?

**URL:** <https://discuss.aerospike.com/t/python-client-drop-secondary-index/3869>\
**Category:** General Discussion\
**Tags:** python\
**Created:** [February 21, 2017, 6:10pm UTC](https://discuss.aerospike.com/t/python-client-drop-secondary-index/3869 "2017-02-21T18:10:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charuvind\_Atre](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@Charuvind\_Atre](https://discuss.aerospike.com/u/Charuvind_Atre)\
**Post date:** [February 21, 2017, 6:10pm UTC](https://discuss.aerospike.com/t/python-client-drop-secondary-index/3869/1 "2017-02-21T18:10:55Z")

</div>

how do I drop secondary index using python client?

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [February 22, 2017, 12:24am UTC](https://discuss.aerospike.com/t/python-client-drop-secondary-index/3869/2 "2017-02-22T00:24:30Z")

</div>

I’ve never used it, but have you tried this?

> index\_remove(ns, index\_name[, policy]) Remove the index with index\_name from the namespace.

> Parameters: ns (str) – the namespace in the aerospike cluster. index\_name (str) – the name of the index. policy (dict) – optional Info Policies. Raises: a subclass of AerospikeError. [aerospike.Client — Client Class — Aerospike documentation](http://www.aerospike.com/apidocs/python/client.html#aerospike.Client.index_remove)

---

<div class="post-metadata">

**Author:** ![pgupta](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/pgupta/32/2351_2.png) [@pgupta](https://discuss.aerospike.com/u/pgupta)\
**Post date:** [February 22, 2017, 1:05am UTC](https://discuss.aerospike.com/t/python-client-drop-secondary-index/3869/3 "2017-02-22T01:05:10Z")

</div>

@Albot I verified your suggestion,@Charuvind_Atre That works.

---

<div class="post-metadata">

**Author:** ![Charuvind\_Atre](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@Charuvind\_Atre](https://discuss.aerospike.com/u/Charuvind_Atre)\
**Post date:** [February 23, 2017, 6:47am UTC](https://discuss.aerospike.com/t/python-client-drop-secondary-index/3869/4 "2017-02-23T06:47:41Z")

</div>

@Albot @pgupta Thank you! I was googling ‘drop index aerospike python’ and google failed me.
