Skip to main content
Module

x/ts_morph/mod.ts>SourceFile#delete

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method SourceFile.prototype.delete
import { SourceFile } from "https://deno.land/x/ts_morph@15.1.0/mod.ts";

Queues a deletion of the file to the file system.

The file will be deleted when you call ast.save(). If you wish to immediately delete the file, then use deleteImmediately().