Example code snippet (C++):
void CleanupEngine::ExecuteCleanup() // Iterate through cleanup lists for (const auto& file : fileCleanupList_) // Remove file DeleteFile(file.path); avast cleanup code