> For the complete documentation index, see [llms.txt](https://tools.thehacker.recipes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tools.thehacker.recipes/mimikatz/modules/sid/clear.md).

# clear

{% hint style="warning" %}
To use this command, [`sid::patch`](/mimikatz/modules/sid/patch.md) must be executed first.
{% endhint %}

`sid::clear` can be used to clear the `sIDHistory` of a target object. The command must be executed directly on a domain controller. It has the following command line argument:

* `/sam`: the `sAMAccountName`.

```
mimikatz # sid::clear /sam:username
```
