diff --git a/doc/update/4.2-to-5.0.md b/doc/update/4.2-to-5.0.md
index daf7f7dc4a2b66665d653091b45724f5622e5893..30b25a2d2d5c07b3232d5d6d78b376e366ead664 100644
--- a/doc/update/4.2-to-5.0.md
+++ b/doc/update/4.2-to-5.0.md
@@ -163,3 +163,7 @@ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
 ```
 
 **P.S. If everything works as expected you can remove gitlab user from system**
+
+```bash
+sudo userdel -r gitlab
+```