diff --git a/openbis/build/build.xml b/openbis/build/build.xml
index a368136f6cffde49392212955adc254fbe1178e6..05c9ad2b25e7d76daea7629560d9a2cec945a0a1 100644
--- a/openbis/build/build.xml
+++ b/openbis/build/build.xml
@@ -248,8 +248,6 @@
   
   <!-- Pattern sets of API source in project 'openbis_api' -->
   <patternset id="openbis_api-api-sources">
-    <include name="ch/systemsx/cisd/openbis/plugin/query/client/api/v1/**" />
-    <include name="ch/systemsx/cisd/openbis/plugin/query/shared/api/v1/dto/**" />
     <include name="ch/systemsx/cisd/openbis/generic/shared/api/v1/**" />
     <include name="ch/systemsx/cisd/openbis/generic/shared/api/v1/dto/**" />
   </patternset>
diff --git a/rtd_phosphonetx/build/build.xml b/rtd_phosphonetx/build/build.xml
index 5dcd75e1b7d13de83d834a7f6531573821cb2061..d7f900599560480f14114affb7a10489cbb07b21 100644
--- a/rtd_phosphonetx/build/build.xml
+++ b/rtd_phosphonetx/build/build.xml
@@ -95,9 +95,6 @@
   
   <target name="make-api-doc">
     <javadoc destdir="${api.doc}" access="public" author="false" version="false" classpath="${ecp}">
-      <packageset dir="../openbis/${sources}">
-        <patternset refid="openbis-api-sources"/>
-      </packageset>
       <packageset dir="../openbis_api/${sources}">
         <patternset refid="openbis_api-api-sources"/>
       </packageset>
@@ -116,9 +113,6 @@
     </zip>
     <delete dir="${dist}/${api.prefix}" />
     <zip destfile="${api.src.zip}">
-      <fileset dir="../openbis/${sources}">
-        <patternset refid="openbis-api-sources"/>
-      </fileset>
       <fileset dir="../openbis_api/${sources}">
         <patternset refid="openbis_api-api-sources"/>
       </fileset>