Delete file object from fileMap in delFile

Closes #335