DELETE tabellaA, tabellaB FROM tabellaA, tabellaB
WHERE tabellaA.idindex=tabellaB.idindex AND idindex=$id