Delete files properly

Fixes #33
Delete files properly
Merge pull request #36 from simonbernard/delete-files-properly

Delete files properly
Fixes #33