Remove pointer by id.