Added delete profile code