docstamp/file_utils.py
def cleanup(workdir, extension):
    """ Remove the files in workdir that have the given extension.

    Parameters
    ----------
    workdir:
        Folder path from where to clean the files.

    extension: str
        File extension without the dot, e.g., 'txt'
    """
    [os.remove(f) for f in glob(os.path.join(workdir, '*.' + extension))]
def cleanup(workdir, extension):
    [os.remove(f) for f in glob(os.path.join(workdir, '*.' + extension))]
def cleanup ( workdir , extension ) : [ os . remove ( f ) for f in glob ( os . path . join ( workdir , '*.' + extension ) ) ]
Remove the files in workdir that have the given extension.

    Parameters
    ----------
    workdir:
        Folder path from where to clean the files.

    extension: str
        File extension without the dot, e.g., 'txt'
Remove the files in workdir that have the given extension .