Tap on the Habitat that holds the dragon you wish to sell. Select your desired dragon and tap on the 'SELL' button on the bottom right of your screen. A confirmation pop-up will appear for you to confirm this action.
If the 'SELL' button does not appear, it means you need to collect more dragons in order to unlock this action.