How to remove unwanted files from Yocto build?

I have built a custom image using Yocto and following the Toradex tutorials. I am deploying the image on an iMX6ULL which has a small flash memory, so I removed the packages that were not needed.

However, in /home/root there are three folders (sound, video, pictures) and I want to remove them too, but I cannot find the recipe/configuration line that generated/included them in the Linux image (oe-pkgdata-util does not work for me because it gives command not found error).

Does anybody know how to remove these folders from the build?

I found what was adding these files in the image. It was the line with media-files from the tdx-reference-multimedia-image.bb recipe.

Perfect that your issue is solved. Thanks for the feedback.