Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: catalog.copy - Function Up: catalog - Tool Previous: catalog.lastshowtypes - Function


catalog.delete - Function



Package utility
Module catalog
Tool catalog


Delete


Synopsis
delete(files, refreshgui, confirm)


Description
Delete one or more files. The argument is a list of files to be deleted. Wildcards may be used (except in the directory path). It returns the number of files deleted (or a fail in case of errors). Note that confirmation is asked for if the confirm argument is 'yes' (for any file) or 'directory' (for a directory). By default the confirm argument is unset meaning that the default confirmation option (as returned by getconfirm()) is used.



Arguments

files in Files to be deleted
    Allowed: String
refreshgui in Refresh the GUI?
    Allowed: Bool
    Default: T
confirm in Confirmation?
    Allowed: yes, directory, no
    Default: unset


Returns
Integer


Example
  dc.delete("3C273.*model")





next up previous contents index
Next: catalog.copy - Function Up: catalog - Tool Previous: catalog.lastshowtypes - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15