[REVIEW] Fixed Remove previewfile functionality (issue #544)