Here's the code I would use (the code that is referenced in that link is good if there is only one but if you have more than one, it can miss some of them because when you delete one, the collection indices change and your For Each will bypass some). So here you move backwards through the collection and therefore don't miss any.
Code:
Dim z As Integer
Dim db As DAO.Database
Set db = CurrentDb
For z = db.TableDefs.Count-1 To 0 Step -1
If InStr(1, db.TableDefs(z).Name, "ImportError") > 0 Then
DoCmd.DeleteObject acTable, db.TableDefs(z).Name
End If
Next z