Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.delete_

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.delete_
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { delete_ } = fn;

Without {flags} or with {flags} empty: Deletes the file by the name {fname}.

This also works when {fname} is a symbolic link. The symbolic link itself is deleted, not what it points to.

When {flags} is "d": Deletes the directory by the name {fname}. This fails when directory {fname} is not empty.

When {flags} is "rf": Deletes the directory by the name {fname} and everything in it, recursively. BE CAREFUL! Note: on MS-Windows it is not possible to delete a directory that is being used.

The result is a Number, which is 0/false if the delete operation was successful and -1/true when the deletion failed or partly failed.

Use remove() to delete an item from a List. To delete a line from the buffer use :delete or deletebufline().

Can also be used as a method:

GetName()->delete()

Parameters

denops: Denops
fname: unknown
optional
flags: unknown

Returns

Promise<number>