Socket
Book a DemoInstallSign in
Socket

fs-force-delete-win

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fs-force-delete-win

force delete files or directories blocked by other process

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

force-delete

force delete files or directories blocked by other process in Windows

PS: Only works in 32 and 64 bit Windows from XP

Install

npm i fs-force-delete-win --save

Example

const forceDelete = require('fs-force-delete')

forceDelete('C:\\git\\testFilePath')

API

NameTypeDefaultDescription
[deletePath]{string}the path to a file, a folder or a leading part of the path. E.g. K:, C:\Program Files, C:\Docume. /unlock or -u - unlocks the file_or_folder_path. It closes all handles to the files\folder that starts from file_or_folder_path and unloads .dlls which are residing in the files\folder that starts from file_or_folder_path.
[option]{object}{}option
[kill]{boolean}falseterminates all the apps which are launched from path.
[staticPath]{string}undefinedpath to this package's /static, use this when using webpack in electron.

Known Issue

  • When using without UAC, it will request UAC by GUI. If you refuse the UAC request, It still get delete success
  • When using without UAC, it will request UAC by GUI. If you grant the UAC request, It will return before the file is deleted. It will take about 1-2 second.

Keywords

fs

FAQs

Package last updated on 08 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts