Skip to main content

mb.delete_common_files(files...)

Deletes one or more files to common files from the current branch.

Parameters

  • files: Union[str, List[str]] The file(s) to delete from common files.
    • str: The path to a single file in common files
    • List[str]: Paths to multiple files in common files

Returns

No value is returned. A success status message is printed if the command is successful.

Examples

Deleting a single common file

mb.delete_common_files("utils.py")

Deleting a common file in a lib subdirectory

mb.delete_common_files("lib/utils.py")

Deleting multiple common files

mb.delete_common_files(["utils.py", "helpers.py"])

Deleting all common files

mb.delete_common_files(mb.common_files())

See also