You are here

public function Lockr::deleteSecretValue in Lockr 7.3

Deletes versions of a key in this client's environment.

Parameters

string $name:

File

vendor/lockr/lockr/src/Lockr.php, line 251

Class

Lockr

Namespace

Lockr

Code

public function deleteSecretValue($name) {
  $query = <<<'EOQ'
mutation Delete($input: DeleteClientVersions!) {
    deleteClientVersions(input: $input)
}
EOQ;
  $t0 = microtime(true);
  $this->client
    ->query([
    'query' => $query,
    'variables' => [
      'input' => [
        'secretName' => $name,
      ],
    ],
  ]);
  $t1 = microtime(true);
  $this->client
    ->getStats()
    ->lockrCallCompleted('delete_secret_value', $t1 - $t0);
}