summaryrefslogtreecommitdiff
path: root/cli/js/ops/fs/remove.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/ops/fs/remove.ts')
-rw-r--r--cli/js/ops/fs/remove.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/cli/js/ops/fs/remove.ts b/cli/js/ops/fs/remove.ts
deleted file mode 100644
index 24e23986c..000000000
--- a/cli/js/ops/fs/remove.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-
-import { sendSync, sendAsync } from "../dispatch_json.ts";
-import { pathFromURL } from "../../util.ts";
-
-export interface RemoveOptions {
- recursive?: boolean;
-}
-
-export function removeSync(
- path: string | URL,
- options: RemoveOptions = {},
-): void {
- sendSync("op_remove", {
- path: pathFromURL(path),
- recursive: !!options.recursive,
- });
-}
-
-export async function remove(
- path: string | URL,
- options: RemoveOptions = {},
-): Promise<void> {
- await sendAsync("op_remove", {
- path: pathFromURL(path),
- recursive: !!options.recursive,
- });
-}