pyslk.delete_raw

Contents

pyslk.delete_raw#

pyslk.delete_raw(gns_path: Path | str | list, recursive: bool = False, return_type: int = 0) str | int | CompletedProcess#
Soft delete a namespace (optionally all child objects of a non-empty

namespace) or a specific file

Parameters:
  • gns_path (str or list or Path) – namespace or file (full GNS path); can be file list

  • recursive (bool) – use the -R flag to delete recursively, Default: False

  • return_type (int) – select between 0 (== str output), 1 (== exit code), 2 (subprocess output)

Returns:

stdout of the slk call

Return type:

Union[str, int, subprocess.CompletedProcess]