I have a QFileSystemModel and can delete empty directory with QFileSystemModel.rmdir(index).
Is there a way to delete non-empty directory with Pyside2?