https://github.com/000daniel/deldir-plugin
deldir is a command plugin designed for Linux systems, to delete directories,files and folders.
https://github.com/000daniel/deldir-plugin
command csharp linux plugin terminal
Last synced: 3 months ago
JSON representation
deldir is a command plugin designed for Linux systems, to delete directories,files and folders.
- Host: GitHub
- URL: https://github.com/000daniel/deldir-plugin
- Owner: 000Daniel
- Created: 2022-01-13T13:47:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T17:35:08.000Z (over 4 years ago)
- Last Synced: 2025-07-15T09:20:13.558Z (about 1 year ago)
- Topics: command, csharp, linux, plugin, terminal
- Language: C#
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# deldir plugin - command
This plugin allows you to delete entire directories, and it is compatible with elevated privileges.
Alternatively this plugin allows you to choose whether you want to delete only files or only folders.
You also have the option to delete a single file.
This plugin is a terminal command.

## Usage
Available Flags:
`-q, --quiet don't print folder/file tree`
`-i, --information display extra information`
`-b, --basedirectory delete the base directory`
`--fol, --foldersonly delete only folders`
`--fil, --filesonly delete only files`
Examples:
`deldir`
`deldir -i -b`
`deldir Desktop/folder`
`deldir Desktop/folder -i -b`
`deldir Desktop/folder -q -b`
`deldir Desktop/folder --fil`

## Note before installing
This script and the plugin should work on any systems with or without dotnet installed.
The auto install script uses: sudo.
This script was tested on EndeavourOS(Arch-based), but it should work on other linux systems.
I do not take any responsibility for any kind of damage this script might cause,
use it at your own risk.
## Installer
download the `installer.sh` file.
unpack it in the same directory as the other files.
enter the next commands into the terminal:
`sudo chmod +x installer.sh`
`./installer.sh`
🞄 after the script installs you should be able to use the deldir command.
## Manual-Install
download and unpack the files.
run in terminal:
`sudo cp deldir /usr/bin/`
`sudo cp deldir.pdb /usr/bin/`
`sudo chmod +x /usr/bin/deldir`
now you should be able to run the 'deldir' command.
## Change log:
### 1.3
• Added a better 'tree' preview of folders and files.
• Added a cleaner 'current' directory display.
• Added back the 'Version' text in `-h`.
• Updated the `installer.sh` file.
• The plugin will now sort the files and the folders.
• Optimized some of the source code(to be more readable).
• Added more comments in the source code.
### 1.2
• Fixed more issues regarding long directories not displaying properly.
• Ported this project to use my Argument Parser 3.2 instead of 2.0.
• Changed a bit the color scheme.
• Optimized some of the source code(to be more readable).
• Added more comments in the source code.
### 1.1
• Fixed some issues regarding long directories not displaying properly.
• Added more exceptions with new Error messages.
• Added a 'Version' text in `-h`
This software was programmed in Visual Studio Code (.Net 6.0).
> Note: This is an early iteration of this plugin, so expect limitations with this plugin.
```diff
- created by https://github.com/000Daniel
```
Publish/Release dates: 13.01.2022