delete the PIC refrence