# removeByRankRange - not working with reverse rank as expected

**URL:** <https://discuss.aerospike.com/t/removebyrankrange-not-working-with-reverse-rank-as-expected/8641>\
**Category:** General Discussion\
**Tags:** cdt\
**Created:** [July 17, 2021, 5:53pm UTC](https://discuss.aerospike.com/t/removebyrankrange-not-working-with-reverse-rank-as-expected/8641 "2021-07-17T17:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guni\_Atarya](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/guni_atarya/32/1700_2.png) [@Guni\_Atarya](https://discuss.aerospike.com/u/Guni_Atarya)\
**Post date:** [July 17, 2021, 5:53pm UTC](https://discuss.aerospike.com/t/removebyrankrange-not-working-with-reverse-rank-as-expected/8641/1 "2021-07-17T17:53:30Z")

</div>

I would love it if someone can address this issue i’m having:

> <https://stackoverflow.com/questions/68422105/retain-max-value-of-aerospike-cdt-list>

---

<div class="post-metadata">

**Author:** ![Guni\_Atarya](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/guni_atarya/32/1700_2.png) [@Guni\_Atarya](https://discuss.aerospike.com/u/Guni_Atarya)\
**Post date:** [July 18, 2021, 7:41am UTC](https://discuss.aerospike.com/t/removebyrankrange-not-working-with-reverse-rank-as-expected/8641/2 "2021-07-18T07:41:49Z")

</div>

I’ve solved it, wrote the solution as an answer in stackoverflow

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [July 18, 2022, 7:42am UTC](https://discuss.aerospike.com/t/removebyrankrange-not-working-with-reverse-rank-as-expected/8641/3 "2022-07-18T07:42:48Z")

</div>

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
