This functionality already exists in the ppa-purge package from xorg-edgers, so it should be as easy as running or porting that script when a PPA is removed or unchecked in Synaptic.
This functionality already exists in the ppa-purge package from xorg-edgers, so it should be as easy as running or porting that script when a PPA is removed or unchecked in Synaptic.