diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle
index 38c1c884f9ccf5d8b34cdcce4b90bac507376ea4..149e7c9eaf712146217f8bc32b2be1de6b1eca69 100644
--- a/matrix-sdk-android/build.gradle
+++ b/matrix-sdk-android/build.gradle
@@ -15,27 +15,6 @@ buildscript {
     }
 }
 
-dokkaHtml {
-    dokkaSourceSets {
-        configureEach {
-            // Emit warnings about not documented members.
-            reportUndocumented.set(true)
-            // Suppress legacy Riot's packages.
-            perPackageOption {
-                matchingRegex.set("org.matrix.android.sdk.internal.legacy.riot")
-                suppress.set(true)
-            }
-            perPackageOption {
-                matchingRegex.set("org.matrix.androidsdk.crypto.data")
-                suppress.set(true)
-            }
-            // List of files with module and package documentation
-            // https://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation
-            includes.from("./docs/modules.md", "./docs/packages.md")
-        }
-    }
-}
-
 android {
     testOptions.unitTests.includeAndroidResources = true