diff --git a/conan/tools/files/__init__.py b/conan/tools/files/__init__.py
--- a/conan/tools/files/__init__.py
+++ b/conan/tools/files/__init__.py
@@ -1,4 +1,4 @@
-from conan.tools.files.files import load, save, mkdir, ftp_download, download, get, rename, \
+from conan.tools.files.files import load, save, mkdir, rmdir, ftp_download, download, get, rename, \
     chdir, unzip, replace_in_file, collect_libs, check_md5, check_sha1, check_sha256
 
 from conan.tools.files.patches import patch, apply_conandata_patches
diff --git a/conan/tools/files/files.py b/conan/tools/files/files.py
--- a/conan/tools/files/files.py
+++ b/conan/tools/files/files.py
@@ -15,7 +15,7 @@
 from conan.tools import CONAN_TOOLCHAIN_ARGS_FILE, CONAN_TOOLCHAIN_ARGS_SECTION
 from conans.client.downloaders.download import run_downloader
 from conans.errors import ConanException
-from conans.util.files import rmdir
+from conans.util.files import rmdir as _internal_rmdir
 
 if six.PY3:  # Remove this IF in develop2
     from shutil import which
@@ -61,6 +61,10 @@ def mkdir(conanfile, path):
     os.makedirs(path)
 
 
+def rmdir(conanfile, path):
+    _internal_rmdir(path)
+
+
 def get(conanfile, url, md5='', sha1='', sha256='', destination=".", filename="",
         keep_permissions=False, pattern=None, verify=True, retry=None, retry_wait=None,
         auth=None, headers=None, strip_root=False):
@@ -507,7 +511,7 @@ def swap_child_folder(parent_folder, child_folder):
             if os.path.isfile(path):
                 os.remove(path)
             else:
-                rmdir(path)
+                _internal_rmdir(path)
     child = os.path.join(parent_folder, child_folder)
     for f in os.listdir(child):
         shutil.move(os.path.join(child, f), os.path.join(parent_folder, f))

diff --git a/conans/test/integration/tools/file_tools_test.py b/conans/test/integration/tools/file_tools_test.py
new file mode 100644
--- /dev/null
+++ b/conans/test/integration/tools/file_tools_test.py
@@ -0,0 +1,30 @@
+import os
+import textwrap
+
+from conans.test.utils.tools import TestClient
+
+
+def test_file_tools():
+
+    conanfile = textwrap.dedent("""
+
+    from conan import ConanFile
+    from conan.tools.files import rmdir, mkdir
+
+    class pkg(ConanFile):
+
+        def layout(self):
+            self.folders.generators = "gen"
+
+        def generate(self):
+            mkdir(self, "folder1")
+            mkdir(self, "folder2")
+            rmdir(self, "folder2")
+
+    """)
+
+    client = TestClient()
+    client.save({"conanfile.py": conanfile})
+    client.run("install . ")
+    assert os.path.exists(os.path.join(client.current_folder, "gen", "folder1"))
+    assert not os.path.exists(os.path.join(client.current_folder, "gen", "folder2"))

[feature] Move [rmdir] to conan.tools.files
Currently, it is missing in the new namespace.


conans/test/integration/tools/file_tools_test.py::test_file_tools