You can fetch historical data for any instrument using the instrument token which is available in the instrument master dump. The instrument master dump will not have the delisted instruments and hence you won't be able to fetch historical data for a delisted instrument.
The instrument master dump will not have the delisted instruments and hence you won't be able to fetch historical data for a delisted instrument.
If the purpose of historical data is to backest, then data for delisted shares should also be available.
This will prevent survivorship bias.