Improve threadsafety of Metadata.File.
Implement delete