def delval(filename, keyword, *args, **kwargs):

    if 'do_not_scale_image_data' not in kwargs:
        kwargs['do_not_scale_image_data'] = True

    hdulist, extidx = _getext(filename, 'update', *args, **kwargs)
    del hdulist[extidx].header[keyword]
    hdulist.close()
Delete all instances of keyword from a header in a FITS file.
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/convenience.py/delval