If fluid buildup in the pericardium is due to the inflammation, it may need to be drained. In some cases, the entire pericardium may need to be surgically removed to allow the heart to work normally.