Pus in my babys ear

My baby is 6months old. I noticed pus in her ear. But she is all fine. How do i clean it? What causes pus? Pls respond am worried