Cleans up any lingering Proxy sessions that have lost their associated tasks.
Note: If you want Flex to do this for you automatically just enable janitor on your Flex Flow. For more information see here
flex-channel-janitor --account-sid AC46f5800f249d224c431c937528128afb --auth-token 73286632772f1fc262a05fbgaaj6h2de
✔ Fetch Flex resources
✔ Find stale chat sessions. Found 60 candidates
✔ Clean up stale sessions. 60 done
DONE
- Get your account credentials from twilio.com/console
- Clone and run directly or install via npm.
npm install -g flex-channel-janitor
flex-channel-janitor --account-sid $accountSid --auth-token $authToken
git clone https://github.com/jtgi/flex-channel-janitor.git
cd flex-channel-janitor
npm install
./bin/flex-channel-janitor --account-sid $accountSid --auth-token $authToken