CLI Reference > Workflows and Documents Commands > tm deleteresult
  
tm deleteresult
deletes test results for the specified test cases
Synopsis
tm deleteresult [--sessionID= value] [--height= value] [--width= value][--x= value] [--y= value] [--hostname= value] [--port= value] [--password= value][--user= value] [(-?|--usage)] [(-g|--gui)] [(-F value|--selectionFile= value)][--quiet] [--settingsUI=[gui|default]] [--status=[none|gui|default]][(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd= value][--forceConfirm=[yes|no]]caseID|sessionID:caseID|sessionID:caseID:stepID|versionedCaseID|versionedSuiteID:versionedCaseID|sessionID:versionedSuiteID:versionedCaseID...
Description
This command deletes test results for test cases.
Options
This command takes the universal options available to Windchill RV&S commands, as well as some general options. See the options reference page for descriptions.
--sessionID=value
deletes all test results in the specified test session. If you use this option, do not specify test results using the caseID|sessionID:caseID.
caseID|sessionID:caseID|sessionID:caseID:stepID|versionedCaseID|versionedSuiteID:versionedCaseID|sessionID:versionedSuiteID:versionedCaseID...
specifies the test case IDs to delete test results for. The test cases must all belong to the session specified in the --sessionID option. If the session is not specified in the --sessionID option, you must specify the session ID and case ID for each test case you want to delete test results for. You can also specify individual test steps in a test case to delete results for. If you do not specify this option, you must specify the --sessionID option.
As of Integrity Lifecycle Manager 12.0, you can also specify versioned test case IDs to delete test results for.
For example,
tm deleteresult --sessionID=1393 853-3.0:856-6.0
deletes test results for versioned test case 856-6.0 belonging to versioned test suite 853-3.0 in test session 1393.
* 
It is not mandatory to specify the versioned test suite when using the command with --sessionID option.
For example,
tm deleteresult --sessionID=1393 856-6.0
deletes test results for versioned test case 856-6.0.
If the --sessionID option is not used, then you need to provide test session ID, versioned test suite ID and versioned test case ID in the sessionID:versionedSuiteID:versionedCaseID format.
For example,
tm deleteresult 1393:853-3.0:856-6.0
deletes test result for versioned test case 856-6.0 belonging to versioned test suite 853-3.0 in test session 1393.
You can also delete a test step result using the tm deleteresult command.
For example,
tm deleteresult --sessionID=1393 1393:574:548
deletes test step 548 for test session 1393.
Alternatively, you can delete a test step without specifying the --sessionID option as follows:
tm deleteresult 1393:574:548
* 
The test session must be in a state that allows test results to be modified, and the test result policy for the session must allow the user to modify test results.
See Also
Commands: tm createresult, tm editresult, tm viewresult, tm extractattachments, tm stepresults, tm resulteditor, tm results, tm editresult, tm testcases, tm setresults, tm viewuntested
Miscellaneous: options