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

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

Step 2: Tap on the 'Sell' button and choose the desired exchange. The Exit Position screen will be populated with pre-filled information.

Step 3: Enter the quantity and the 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. Enter your TPIN and the OTP sent to your registered mobile number by CDSL. If you forgot your TPIN or haven't generated it before, 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.