Treatment is needed if a pilonidal cyst becomes infected. The first line of treatment is often draining the cyst. Any hair follicles in the cyst may also be removed.