fdelhdu -- Delete an extension from a FITS file
fdelhdu infile[ext#] confirm proceed
This task deletes an extension (not the primary) of a FITS file. Since the input FITS file is modified by this utility, an opportunity is given to confirm before deleting the extension.
1. Delete the second extension from the input file test.fits.
ft> fdelhdu test.fits+2 N Y
The user has to provide the extension number or name of input file explicitly. Otherwise the program will give a error message and quit.
ftdelhdu. fv, the interactive FITS file editor, can also be used to delete extensions from a FITS file.