Skip to main content
delete_files(file_names=None, options=)[source]

Deletes one or more files from KiFS.

Parameters

file_names (list of str) –

An array of names of files to be deleted. File paths may contain wildcard characters after the KiFS directory delimiter.

Accepted wildcard characters are asterisk (*) to represent any string of zero or more characters, and question mark (?) to indicate a single character. The user can provide a single element (which will be automatically promoted to a list internally) or a list.

options (dict of str to str) –

Optional parameters. Allowed keys are:

  • no_error_if_not_exists – If true, no error is returned if a specified file does not exist. Allowed values are:

    • true

    • false

    The default value is ‘false’.

The default value is an empty dict ( ).

Returns

A dict with the following entries–

file_names (list of str) –

Names of the files deleted from KiFS.

info (dict of str to str) –

Additional information.