His Majesty King Mohammed VI has had a successful operation.