Add non-deprecated alternative to clear(int id, int data)