Don't start a new process to delete a file
Bug: 119076203
Test: build and run locally
Change-Id: Ice5cf85e2d002943cfb2b938f28bfec67e833df7
diff --git a/host/commands/launch/main.cc b/host/commands/launch/main.cc
index 3b685f1..a33127a 100644
--- a/host/commands/launch/main.cc
+++ b/host/commands/launch/main.cc
@@ -213,7 +213,7 @@
void RemoveFile(const std::string& file) {
LOG(INFO) << "Removing " << file;
- cvd::execute({"/bin/rm", "-f", file});
+ remove(file.c_str());
}
bool ApplyDataImagePolicy(const char* data_image) {