diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 87efc43af2898..5e406b36c5c5b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -661,8 +661,7 @@ build-rustdoc:
- ./crate-docs/
script:
# FIXME: it fails with `RUSTDOCFLAGS="-Dwarnings"`
- - RUSTDOCFLAGS="--html-in-header $(pwd)/.maintain/rustdoc-header.html"
- time cargo +nightly doc --no-deps --workspace --all-features --verbose
+ - time cargo +nightly doc --no-deps --workspace --all-features --verbose
- rm -f ./target/doc/.lock
- mv ./target/doc ./crate-docs
# FIXME: remove me after CI image gets nonroot
diff --git a/.maintain/rustdoc-header.html b/.maintain/rustdoc-header.html
deleted file mode 100644
index a679d5e299da7..0000000000000
--- a/.maintain/rustdoc-header.html
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-