Fix VersionedFileExtension::onBeforeDelete() to properly clean up after itself.