pwn3r is this tutorial for migrating my forum? I just wanted to delete the extensions so that I can empty up some space on my storage
No it is not, you can delete the vendor directory if you want to clean up some storage, it will break your Flarum installation though.
LemonLone Do not run Composer as root/super user
That's a very normal message, seems you are running composer commands as the root user. Usually you are supposed to run composer with your own user or potentially the web user instead. This is just a warning however and if you're sure you're doing the right thing for your environment, you can ignore it.