How to remove xdg-utils?

I would like to remove xdg-utils from my system. I haven’t found an option for that and nix-tree doesn’t show it as a dependency of some other package.

Is there a simple way to do it?

Most likely some application that you’ve installed requires it. You can use the following command to list things that depend on xdg-utils:

$ nix-store --query --referrers $(nix-build '<nixpkgs>' -A xdg-utils)
3 Likes