'why do I have xwayland running on my ubuntu server and how to remove it

I notive that xwayland is running on my ubuntu 20 server and I don't understand why. Here are all the things I have install with "apt-get install"

libmagickwand-dev libcurl4-gnutls-dev libcurl4 libcurl4-openssl-dev libcurl4 libcurl4-openssl-dev libpq-dev certbot python3-certbot-nginx jpegoptim optipng pngquant webp wkhtmltopdf
imagemagick

Is there anyway to find how it xwayland was installed?

Also I would like to know how to remove it cleanly and to remove all other useless "graphic" things that could have been installed too.

thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source