The standard way of deleting folders in python I am aware of is
shutil.rmtree('/path/to/folder')
However, this command blocks until the deletion is completed, which in the case of large folders can take a long time.
Is there a non-blocking alternative? I.e. a function that would delete the folder in the 'background' but return immediately?