This python script lets you clear your messages out of a Spark room / space.
-
Log into https://developer.ciscospark.com/ with your spark credentials
-
Go to one of the API test pages. Like: https://developer.ciscospark.com/endpoint-messages-get.html
-
Near the top right half of the screen there will be a "Test Mode" toggle. Turn it to "ON".
-
Record the Authorization code, or Access Token.
-
Open web.ciscospark.com and log in if your aren't already.
-
Navigate to the room in wich you want to clear messages from.
-
In the URL you'll want to find the Room ID as depicted with X's in this example: https://web.ciscospark.com/rooms/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/chat
-
Run the script and you will be asked for your e-mail (your e-mail and it is case sensitive), the access token, the room ID, and finally the max number of messages you want to retrieve.
-
The script will run and grab the max number of messages from the room and delete the ones that belong to you.
-
Profit.