delete
- FileSet.delete(dry_run=False, **kwargs)[source]
Remove files in this fileset from the disk
Warning
The deleting of the files cannot be undone! There is no prompt before deleting the files. Use this function with caution!
- Parameters:
dry_run – If true, all files that would be deleted are printed.
**kwargs – Additional keyword arguments that are allowed for
find()
such as start, end or files.
- Returns:
Nothing
Examples:
fileset = FileSet( "old/path/{year}/{month}/{day}/{hour}{minute}{second}.nc", ) # Delete all files in this fileset: fileset.delete()