How do i cancel the subscription for UE4?

Log in to your account on unrealengine.com. Check the “my account” section. Press the big Cancel button.