Skip to content

Instantly share code, notes, and snippets.

@karl007
karl007 / riot_delete_room.php
Created February 13, 2020 09:35
[Matrix/Riot] kick all users of a room to delete it
#!/usr/bin/php
<?php
if(!function_exists('curl_init')) {
die('cURL not available!');
}
// check if there are every required arguments
if (count($argv) < 4) {
echo('USAGE: ' . $argv[0] . ' <URL> <TOKEN> <ROOM ALIAS|ID>');