DeleteSlackFiles
Quick console command to delete slack files older than X days.
Written in PHP, (*1)
Install
Via Composer, (*2)
``` bash
$ composer require webleit/delete-slack-files, (*3)
## Usage
Follow this guide to generate a slack token: [https://get.slack.help/hc/en-us/articles/215770388-Create-and-regenerate-API-tokens](https://get.slack.help/hc/en-us/articles/215770388-Create-and-regenerate-API-tokens)
``` php
php console slack:deletefiles olderThanXDays --token=yourSlackToken
Example
Delete files older than 1 year, (*4)
``` php
php console slack:deletefiles 365 --token=dsjiadp2831312pnu8sdjafjp8128213jdsaopdj81, (*5)
## Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Testing
``` bash
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*6)
Security
If you discover any security related issues, please email daniele@weble.it instead of using the issue tracker., (*7)
Credits
License
The MIT License (MIT). Please see License File for more information., (*8)