4.2 Release Notes

If you no longer need to work with that sample in the older version of the engine, then yes, you can safely remove these older samples. For that matter, you can also uninstall the older versions of the engine if you are confident that the newer ones meet your project needs and you have no reason to return to a previous version.

I hope this helps.