diff --git a/docs/installation/debian.rst b/docs/installation/debian.rst
index 2a9f39ea59dbc07bbb74c7b03c89671c0cab7e8e..b3691ac1eb02bd8194e90c658a46597eee9788f1 100644
--- a/docs/installation/debian.rst
+++ b/docs/installation/debian.rst
@@ -90,7 +90,7 @@ First, we'll download the latest api release.
     curl -L -o "api-|version|.zip" "https://code.eliotberriot.com/funkwhale/funkwhale/-/jobs/artifacts/|version|/download?job=build_api"
     unzip "api-|version|.zip" -d extracted
     mv extracted/api/* api/
-    rmdir extracted
+    rm -rf extracted
 
 
 Then we'll download the frontend files: