for k,v in pairs(getElementsByType("vehicle")) do if getElementData(v, "id") then else destroyElement(v) end end