Delete classptr