You cannot uninstall the Windows Security app, but you can disable its interface on Windows Server 2016 or hide all sections on client computers. If you want to disable Microsoft Defender Antivirus, you can do so if needed. However, keep in mind that disabling the Windows Security app or its features can lead to stale or inaccurate information about antivirus or firewall products, which may lower the protection level of your device and could lead to malware infection.
If you wish to hide notifications or customize the settings, you can also explore options within the Windows Security app itself.
References: