Deleting them from an existing project depends on your OS. If it is a Unix based system you could do something like this: find . -type f -name '*.spec.ts' -delete