If you mean removing malware from your computer, there are many programs to use such as Zemana AntiMalware, Malwarebytes AntiMalware, Crystal Security, etc.
If you mean removing malware that's in an application/program, either don't use it, run it in a virtual machine or use it sandboxed in something like Sandboxie.