this code will work
local function borrado(desplazar)
block[desplazar]:removeSelf()
end
transition.to(block[desplazar], {time=14000, alpha=0, onComplete = timer.performWithDelay(12000, function() borrado(desplazar) end),1})
just remember when using transition and timer do not just call the function with an argument because you will not achieve the time you want it to trigger just like this
timer.performWithDelay(12000, borrado(desplazar))
it will just trigger the function without the time you assign. hope this helps