11 lines
215 B
PHP
11 lines
215 B
PHP
|
<?php
|
||
|
|
||
|
require __DIR__ . "/../vendor/autoload.php";
|
||
|
|
||
|
$client = new \crodas\InfluxPHP\Client;
|
||
|
foreach ($client->getDatabases() as $db) {
|
||
|
if (preg_match("/^test_/", $db->getName())) {
|
||
|
$db->drop();
|
||
|
}
|
||
|
}
|