Using SMLets to delete a work item
In this recipe, we will take a look at how you can use SMLets to delete a work item. This is something that you cannot perform from the console for several reasons. One of them being that this goes against all the rules of ITIL.
So why would someone need to delete a work item? Well, you might have created a couple of test work items to verify the production environment or to test a workflow, or something similar.
Getting ready
Make sure that you have downloaded and installed SMLets as described in the previous recipe, Downloading and installing SMLets.
You also need administrator rights within Service Manager to be able to delete a work item.
How to do it...
In this particular example, we will take a look at how to delete an incident. To do so, follow these steps:
- Log on to the Service Manager management server where you installed the SMLets and start Windows PowerShell ISE.
- In the ribbon menu of PowerShell ISE, click Show Script Pane Maximized, and then type...