del

Remove files, links and directories; recursive deletion requires an explicit flag and protected paths are blocked.

FilesVersion 1.2.1Stable
lil-terminal

Overview

del keeps cleanup explicit while still handling real project lists efficiently. Mix files and directories in one call, add -r only when directory contents may be removed, and use -f for repeatable cleanup where some targets may already be gone.

Delete only the intended target

Deletion is safest as a three-step workflow: inspect the target, remove exactly what you intend, then inspect the parent directory again.

Syntax

lil-terminal
del <path>... [-r|-a] [-f]

Reference

del <file>

delete a file (or symbolic link)

del <dir>

delete an empty directory

del <path>...

delete multiple files and/or empty directories

del <dir> -r | del <dir> -a

delete a directory recursively

del <path>... -f

delete the listed paths without failing when some are already absent

Repeatable cleanup

-f is useful in scripts and repeated maintenance. Without it, an already missing target stops the command with Path not found. With -f, missing targets are skipped while existing targets are still processed. A command such as del first.txt folder -r can remove an ordinary file and a directory tree in the same operation.

Safety

All targets are validated before deletion starts. The filesystem root, current directory, configured base and protected parent paths cannot be deleted. Non-empty directories require -r or -a. After successful deletion del returns a compact flat view of the current directory.

Interactive sandbox preview

Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.

Delete a file (or symbolic link)

Install and manage

Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.

Base and Minimum are two packages of the same current module release, not separate command versions.

Base package

Install the complete package with local command reference and every published mode.

install del
Minimum package

Install the reduced package. Local reference is omitted; help <cmd> -i opens the current server reference.

install del -m
Exact public version

Install exactly this published version.

install del -v 1.2.1
Check or update

Ask upgrade to check compatibility and replace the installed block only when needed.

upgrade del
Remove module

Remove the extension block while leaving the core and unrelated modules intact.

install del -u

Examples

Examples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.

Delete a file (or symbolic link)
cd \sandbox\tmp | @mf cleanup.tmp | del cleanup.tmp
cleanup.tmp

+
Delete multiple files and/or empty directories
del sandbox/tmp/first.txt sandbox/tmp/folder/second.txt
tmp/
(mixed file paths removed; the directory itself remains)
Delete a directory recursively
del sandbox/tmp/first.txt sandbox/tmp/folder -r
tmp/
(file and directory targets removed in one recursive operation)
Delete the listed paths without failing when some are already absent
del sandbox/tmp/missing.txt -f
+
(missing target does not turn repeatable cleanup into an error)
Delete a directory recursively
del . -r
Protected path cannot be deleted

File used in this example: sandbox/tmp/README.txt

The example uses a file or directory from the protected /sandbox/ documentation workspace.

lil-terminal sandbox temporary workspace

Commands in the public documentation use this directory for disposable copies,
archives, uploads and files created during examples. Review destructive commands
before running them and restore the sandbox from the release package when needed.

Related documentation

Current public release

v1.2.12026-08-13

Predictable multi-target cleanup

Clarifies mixed targets and -f for repeatable cleanup; successful deletion now returns a compact flat directory view.