Invalidate deleted file internal data structure

See #813