nessun alias per il DELETE...

prova cosi':

codice:
delete tab1
from tab1
left join tab2 ON tab1.codice = tab2.codice
where tab2.codice IS NULL