My error is because $(TargetName).customext already exists so what i actualy need to do is

if exists $(TargetName).customext delete $(TargetName).customext

so to ammend my question how do i do that?