Fixed file deletion