A court was shocked on Monday when a man confessed to killing a university student.

Report has it that, Wasief Buxbey appeared in the Cape Town Magistrates’ Court where he admitted to murdering Stellenbosch University student Robyn Pearce.

The 20-year-old was killed in her mother’s Sea Point apartment earlier this month.

Buxbey, a construction worker from Ottery, appeared visibly distraught as he stood in the dock in courtroom 16.

When asked by Magistrate Joe Magele whether he wanted to appoint a legal aid attorney, the 27-year-old replied “no”.

Speaking softly, Buxbey then told the court he has already confessed to Pearce’s murder, and didn’t want to apply for bail.

“I have already confessed to the murder. I will represent myself,” Buxbey reportedly said.

Robyn, 20, was found butchered in her mother’s locked fourth floor Sea Point apartment on December 2.

She was repeatedly stabbed in her stomach and some items were stolen from the flat.

Buxbey was arrested at his Ottery home last week Wednesday.

It’s believed he had been working at the Sea Point apartment block.

Police said information received from the community led to the arrest.

Cops had also found the blood-stained clothing the suspect had allegedly been wearing during the attack, as well as the possible murder weapon.

Pearce’s relatives who attended court on Monday were visibly upset throughout proceedings.

State prosecutor Rui Carvalho asked that the case be postponed until the State had received outstanding witness reports, crime scene photographs and post-mortem results.

Magele postponed the matter to March 28, 2017.

Buxbey will stay in custody until then.

Pearce, originally from Durban, was a second year BA Humanities student at Stellenbosch University.