You can purchase an open-jaw ticket flying into Delhi and out of Kathmandu. If you want to purchase a roundtrip ticket to Delhi, then you must fly back to Delhi at the end of the trip.