Deallocation of an array of pointers to objects

I've declared an array of pointers to objects like this,
Appointment* appts[PEEPS];

and am creating in a for loop like this,
appts[k] = new Appointment(persons[personSelect], d);

however, I am getting a run-time error when I try to execute delete appts;.

I've researched this and to me it seems I'm doing this correctly, but I guess I'm not. Any help is appreciated.
Nevermind, I found my foolish mistake.
delete *appts; is the correct syntax.

Well that was quick ;)
Topic archived. No new replies allowed.