Paronychia is the inflammation and subsequent infection of the tissue surrounding the nail. Pus may collect under the nail.
If medical treatment does not control the infection then drainage of the pus with nail removal if required, will take care of the problem.