Problem with ProjectManager::removeProjectFromList()

When I call ProjectManager::removeProjectFromList() it also deletes all my sound files in the file system!
What is the correct way to properly delete a project?

removeProjectFromList should not delete anything, but just remove it from the list of projects. If you want do delete the project then you should delete the containing folder.

So to delete a project i just need to call :
projectFile.getParentDirectory().deleteRecursively(); ?