Delete Test Result Report

You can delete any test result that has been previously published by using delete command.

Example

Let’s see a minimal example on how to use Test Hub Client to delete the result of a build.

testhubclient delete \ (1)
              --project myproject \ (2)
              --build 1 (3)
1 delete command to delete test artifacts
2 project flag to set project that contains the test results
3 build flag to set which build identifier that contains the test results

So running previous command will connect to a Test Hub running at http://localhost:8000.

Command

The command to indicate that you want to delete test artifacts is delete.

This operation supports next flags:

Table 1. Push flags
Option Purpose Format Default

--project

Sets the project name where test results were stored

string

not set and mandatory

--build

Sets the build identifier that generated the test results

string

not set and mandatory

--url

Sets the URL where Test Hub is running

URL

--root-ca

PEM encoded CA’s certificate file

File path

--cert

PEM encoded certificate file

File path

--key

PEM encoded private key file

File path

--skip-verify

Skip verification of certifcate chain

Boolean

false

--username

Sets the username to authenticate

String

--password

Sets the password to authenticate

String