PMPI: Added throws to check if folders are deleted or not
Also changed the name of the method to better reflect what it does.