https://github.com/maruki00/gofd
gofd is a command-line utility written in Go for securely deleting files and directories
https://github.com/maruki00/gofd
cli files golang security
Last synced: 8 days ago
JSON representation
gofd is a command-line utility written in Go for securely deleting files and directories
- Host: GitHub
- URL: https://github.com/maruki00/gofd
- Owner: maruki00
- Created: 2025-02-04T17:48:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-14T15:53:13.000Z (12 months ago)
- Last Synced: 2025-08-13T18:30:30.563Z (11 months ago)
- Topics: cli, files, golang, security
- Language: Go
- Homepage:
- Size: 3.62 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gofd
**gofd** is a command-line utility written in Go for securely deleting files and directories. It ensures that sensitive data is overwritten multiple times before deletion, making recovery extremely difficult.
## Features
- Secure deletion of files and directories
- Customizable number of overwrite passes
- Lightweight and fast
- Cross-platform support
## Requirements
- Go 1.16 or higher
## Installation
1. Clone the repository:
```bash
git clone https://github.com/maruki00/gofd.git
```
2. Navigate to the project directory:
```bash
cd gofd
```
3. Build the executable:
```bash
go build -o gofd main.go
```
## Usage
Run the program with the following options:
```bash
gofd [options]
```
Options:
- -path: The full path of the file or directory to delete
- -type: Specify 'file' or 'dir' depending on the target
- -times: Number of times to overwrite the content before deletion
## Examples
1. To securely delete a file:
```bash
gofd -path=/home/user/secret.txt -type=file -times=5
```
2. To securely delete a directory:
```bash
gofd -path=/home/user/old_logs -type=dir -times=3
```
## Disclaimer
Use with caution. This tool will permanently destroy data, and it cannot be recovered.
## License
This project is licensed under the MIT License.
## Author
Developed by maruki00