imdelete: Delete a list of images

Package: imutil

Usage

imdelete images

Parameters

images
List of images to be deleted.
go_ahead
Delete the image?
verify = no
Verify the delete operation for each image.
default_action = yes
The default action for the verify query.

Description

IMDELETE takes as input a list of IRAF images specified by images and deletes both the header and pixel files. In verify mode IMDELETE queries the user for the appropriate action to be taken for each IRAF image.

If the images parameter is a URL, it will be accessed and put into the file cache, then immediately deleted. To simply remove a file from the cache, use the fcache command instead.

Examples

1. Delete a list of images

cl> imdelete fits*

2. Delete a list of images using verify

cl> imdel fits* ver+
cl> Delete file 'fits1' ? (yes): yes
cl> Delete file 'fits2' ? (yes): yes
cl> Delete file 'fits3' ? (yes): yes

Time requirements

Bugs

See also

imcopy, fcache