Changing dx12 to dx11 back

I recently installed apex legend on my pc and i choose dx12 and select it as always use dx12 how to revert this setting because its glitching and wont open and giving error like dx12 is error or something