webleit / delete-slack-files
Console command to delete files from your slack team
1.0.0
2018-01-16 09:56 UTC
Requires
- php: ~7.0
- guzzlehttp/guzzle: ~6.0
- symfony/console: ^4.0
Requires (Dev)
- phpunit/phpunit: >=6.5.5
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2024-12-20 01:48:00 UTC
README
Quick console command to delete slack files older than X days. Written in PHP
Install
Via Composer
$ composer require webleit/delete-slack-files
Usage
Follow this guide to generate a slack token: https://get.slack.help/hc/en-us/articles/215770388-Create-and-regenerate-API-tokens
php console slack:deletefiles olderThanXDays --token=yourSlackToken
Example
Delete files older than 1 year
php console slack:deletefiles 365 --token=dsjiadp2831312pnu8sdjafjp8128213jdsaopdj81
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email daniele@weble.it instead of using the issue tracker.
Credits
- [Daniele Rosario - Weble Srl][https://www.weble.it]
- All Contributors
License
The MIT License (MIT). Please see License File for more information.