Error Code: IS-0002-DP-06

I recently installed UE4.23.1 and tried to remove version 4.21.2 using the Epic Games Launcher. However I keep getting error:" Install Failed/Could not setup permission to install to:C:\Program Files\Epic Games\Ue_4.21".
I can confirm that I have installed UE4.23.1 and now 4.24.0 onto my D; drive as my C; drive is struggling for space.
Does UE4 need to be installed onto C:?
Would I be able to remove all UE4.21 folders?