Two steps:
This will close the position without touching the other position in hedge.
E.g. If you have a 0.001 BTCUSDT in long position which has an idx of 1, close it by placing a 0.001 BTCUSDT order in short position with idx 1.