diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index 75147ed..fa41aad 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -38,7 +38,7 @@ class Rbpkg::Repo
cmd! "cd #{sh_quote(src_dir)} && make clean"
end
if File.directory?(obj_dir)
- FileUtils.rm_rf(obj_dir)
+ cmd! "rm -rf #{sh_quote(obj_dir)}"
end
tag_remove("build-done") if tag_present?("build-done")
end