You can square off your stocks from the holdings section by following these steps:

Step 1: Go to ‘Portfolio’ → ‘Holdings’ and select the stock to square off.

Step 2: Now, tap on the 'Sell' button and select the desired exchange. The Exit Position screen shall get populated with some pre-filled information.

Step 3: Enter the quantity and desired price at which you want to square-off

Step 4: Click on the 'Review sell order' button. 

Step 5: A CDSL screen will be displayed to authorise Upstox to sell your holdings from your demat account. You will need to enter your TPIN and an OTP sent to your registered mobile number by CDSL. If you have forgotten your TPIN or have not generated it before, you can follow the steps mentioned here: Generate the T-PIN. (Not applicable for Intraday square off)

Step 6: Once you have entered the TPIN and OTP on CDSL page, your transaction will be approved and a ‘Delivery order summary’ page shall be displayed.

Step 7: Review the details displayed on the ‘Delivery order summary’ page and click on the 'Submit order' button to place your order.