https://github.com/andygrunwald/dropbox-auto-cleaner
Removes files from a Dropbox folder based on file age
https://github.com/andygrunwald/dropbox-auto-cleaner
cleanup dropbox dropbox-api hacktoberfest
Last synced: 7 months ago
JSON representation
Removes files from a Dropbox folder based on file age
- Host: GitHub
- URL: https://github.com/andygrunwald/dropbox-auto-cleaner
- Owner: andygrunwald
- License: mit
- Created: 2023-02-20T20:18:44.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-01T13:26:09.000Z (9 months ago)
- Last Synced: 2025-06-30T02:42:28.610Z (8 months ago)
- Topics: cleanup, dropbox, dropbox-api, hacktoberfest
- Language: Go
- Homepage:
- Size: 131 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dropbox auto cleaner
Deletes files from your dropbox folder based on file age.
## Usecase
Several video cameras store their recordings in cloud storages, like Dropbox.
If don't need the recordings after some time, those can be deleted.
This way, you keep your Dropbox storage in shape.
## Usage and configuration
```sh
./dropbox-auto-cleaner -help
Usage of ./dropbox-auto-cleaner:
-dry
If set, the app runs in dry mode. To be deleted files will be printed. No files will be deleted.
-file-age string
File age: Every file inside path that is older than this setting will be deleted. Values from https://pkg.go.dev/time@go1.20.1#ParseDuration are supported. Default: '168h' (aka 7 days). (default "168h")
-interval string
Interval in when the cleaning operation should be triggered. Values from https://pkg.go.dev/time@go1.20.1#ParseDuration are supported. Example value: '24h'. (default "24h")
-path string
Folder path to observe and clean. Example value: '/Apps/Netatmo/Your Name'. Required flag.
```
# Development
Makefile
```sh
build-docker Builds the docker image
build Compiles the application
help Outputs the help
run Compiles and starts the application
vet Runs go vet
```