Hello Sreenivasa Reddy.
Sorry for the late response.
The silent uninstall can be done like the silent installation. In the wazuh agent file directory, there is an uninstaller named uninstall.exe. Run that file silently like you did in the installation. For example, I have managed to uninstall with the following command:
Start-Process -Wait -FilePath '<WAZUH_AGENT_PATH>\uninstall.exe' -ArgumentList '/S'
Note: In my configuration, I have windows account control setting (UAC) disabled to avoid the consent prompt. Sometimes it may not be recommended to disable this option. You can see more information here
https://docs.microsoft.com/en-us/windows/security/identity-protection/user-account-control/how-user-account-control-worksTo disable it, you can press Windows + R and type the command: UserAccountControlSettings .You can disable it as shown in the following image.

I would like to know if you found this answer useful.
Greetings.
Jonathan M.V