Skip to main content
Module

x/ddc_vim/deps.ts>fn.delete_

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.delete_
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/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. 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. A symbolic link itself is deleted, not what it points to. 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<unknown>