diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index 7bfcc40a9f1..f6a8d907066 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -196,8 +196,7 @@ module Ci not_found! unless build authenticate_build_token!(build) - build.remove_artifacts_file! - build.remove_artifacts_metadata! + build.erase_artifacts! end end end