PHPackages                             slakbal/slackwipe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. slakbal/slackwipe

ActiveLibrary

slakbal/slackwipe
=================

Purge slack messages

v6.0.3(6y ago)06MITPHP

Since Jul 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/slakbal/slackwipe)[ Packagist](https://packagist.org/packages/slakbal/slackwipe)[ RSS](/packages/slakbal-slackwipe/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (11)Used By (0)

Slackwipe for Laravel
=====================

[](#slackwipe-for-laravel)

Slackwipe is a Laravel package to purge old slack message from your account and keep your channels fresh.

Contributions and Bugs
----------------------

[](#contributions-and-bugs)

Please create a pull request for any changes, update or bugs. Thanks!

Requirements
------------

[](#requirements)

- Laravel ~5.6 or higher
- Currently only supports Redis queue due to throttling functionality supplied by Laravel and required by Slack API. More can be read [here](https://laravel.com/docs/5.6/queues#rate-limiting). Using the Sync driver won't work.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require slakbal/slackwipe

```

Laravel will auto-discover and register the `SlackwipeServiceProvider`, so no further setup is required.

After installing, you must publish the `slackwipe.php` configuration file:

```
php artisan vendor:publish --provider="Slakbal\Slackwipe\SlackwipeServiceProvider"

```

it will only publish the config file, or you can alternatively use:

```
php artisan vendor:publish

```

and select the Slackwipe dependency.

Configuration
-------------

[](#configuration)

API Token
---------

[](#api-token)

In the `config\services.php` config file set the legacy API token for Slack. You can obtain a token from [here](https://api.slack.com/custom-integrations/legacy-tokens).You can also extract it to a `.env` variable to keep it out of your source-repository.

```
'slack' => [
    'token' => 'xoxp-337094627015-336894794790-399611226556404-18456546534534534535321565625234234234234344'
 ]

```

### Channels to wipe

[](#channels-to-wipe)

In the config file the channels and the retention period in days can be configured. If the retention period is set to 0 all messages from the channel will be wiped once the command is executed. If the retention period is set to for example 10 days all messages older from (NOW TIMESTAMP - 10 days) will be wiped.

```
'private-channels' => [
    ['name' => 'dev-chat', 'days_to_keep' => 100],
    ['name' => 'private-channel', 'days_to_keep' => 0],
],

'public-channels' => [
    ['name' => 'general', 'days_to_keep' => 365],
    ['name' => 'random', 'days_to_keep' => 365],
]

```

### Queue

[](#queue)

Per default all jobs will be queued onto the `default` Redis queue. It is however recommended to keep things separate and have a dedicated queue (tube) for the wipe jobs with a single queue worker that would work the specific queue. In the config file you can set the name of the queue to which the jobs should be dispatched to or add the `QUEUE_TUBE_SLACK` variable to your environment (.env) file

```
'slack_wipe_queue' => env('QUEUE_TUBE_SLACK', 'default')

```

Execution
---------

[](#execution)

You can run the command manually by executing:

```
php artisan slack:wipe

```

Make sure you have a queue working running, otherwise you won't see any effect in Slack.

You may define a scheduled task in the schedule method of the `App\Console\Kernel` class to queue wipe jobs, eg.:

```
$schedule->command('slack:wipe')->everyFifteenMinutes()->between('3:00', '5:00')->withoutOverlapping();

```

Your contributions (Pull Requests) or bug fixes are welcome!

Enjoy!

Slakbal

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~69 days

Recently: every ~22 days

Total

9

Last Release

2287d ago

Major Versions

1.0.2 → 2.0.02019-10-30

2.0.1 → v6.0.02020-02-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/9da7a28c38b059ccdf1df0632e745ce43555bc02bc4ad2609543c674738a748b?d=identicon)[slakbal](/maintainers/slakbal)

---

Top Contributors

[![slakbal](https://avatars.githubusercontent.com/u/4387265?v=4)](https://github.com/slakbal "slakbal (14 commits)")

---

Tags

laravelslack

### Embed Badge

![Health badge](/badges/slakbal-slackwipe/health.svg)

```
[![Health](https://phpackages.com/badges/slakbal-slackwipe/health.svg)](https://phpackages.com/packages/slakbal-slackwipe)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
