Throw away a regrettably void type of code (6)
I believe the answer is:
binary
'type of code' is the definition.
'throw away a regrettably void' is the wordplay.
'throw away' becomes 'bin' (put something in a bin).
'void' suggests removing the centre (the word is empty or void of its inside letters).
'regrettably' with its centre taken out is 'ry'.
'bin'+'a'+'ry'='BINARY'
(Other definitions for binary that I've seen before include "Of a system using 2 rather than 10 as its base" , "A system of two stars" , "Involving two things" , "Two-star system" , "Double (star)" .)