You remove phosphates with lanthanum (a rare earth metal); you can remove cyanuric acid with melamine, an organic base. But, you don't want to do so: it makes a huge mess.

Draining and refilling will put your pool back in service much faster.