diff --git a/build.xml b/build.xml
index ab065453a76d83ba212299c0bcb82c80ff26e6e6..fa943bec38fc244f6fcbebe763f3617e837df066 100644
--- a/build.xml
+++ b/build.xml
@@ -344,7 +344,6 @@
     <!-- delete the configuration, sample index, logs and cache data -->
     <delete file="${srcdir}/import/solrmarc.log" failonerror="true" />
     <delete dir="${srcdir}/solr" includeemptydirs="true" failonerror="true" />
-    <delete file="${srcdir}/composer.lock" failonerror="false" />
     <delete file="${srcdir}/composer.phar" failonerror="false" />
     <delete file="${srcdir}/vufind-exception.log" failonerror="false" />
     <delete dir="${srcdir}/vendor" includeemptydirs="true" failonerror="false" />