# Not able to exit bracket order

**URL:** https://community.aliceblueonline.com/t/not-able-to-exit-bracket-order/8888
**Category:** API
**Created:** [October 26, 2023, 2:35pm UTC](https://community.aliceblueonline.com/t/not-able-to-exit-bracket-order/8888 "2023-10-26T14:35:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sudhir\_salvi](https://sea1.discourse-cdn.com/flex015/user_avatar/community.aliceblueonline.com/sudhir_salvi/32/4313_2.png) [@sudhir\_salvi](https://community.aliceblueonline.com/u/sudhir_salvi)
#### Post date: [October 26, 2023, 2:35pm UTC](https://community.aliceblueonline.com/t/not-able-to-exit-bracket-order/8888/1 "2023-10-26T14:35:56Z")

</div>

Hi,  
I have placed an bracket order and got order id (example: 123), system have placed and sl and target order after executing first order,  
now i when i try to exit this bracket order by using below ( alice.cancel\_order(orderid))  
i got error completed order cannot cancelled.  
please guide how can i exit bracket order ones order got executed and sl and target order placed by system
