


|  | 
| --- |
| **This software is not currently supported by Amazon Mechanical Turk** The Amazon Mechanical Turk Command Line Tools (CLT) are not currently maintained by Amazon Mechanical Turk. If you would still like to use Amazon Mechanical Turk from the command line, use the `mturk` command in the AWS Command Line Interface (CLI). For more information, see the `mturk` section of the [ AWS CLI Command Reference ](https://docs.aws.amazon.com/cli/latest/reference/mturk/index.html).  | 

 

# resetAccount
<a name="CLTReference_ResetAccountCommand"></a>

## Description
<a name="w2aab9c55b2"></a>

 The `resetAccount` command deletes all of your existing HITs from Amazon Amazon Mechanical Turk. If Workers are still working on a HIT, it is not deleted. Amazon Mechanical Turk approves any assignments that are submitted but not yet approved. 

## arguments
<a name="w2aab9c55b4"></a>

 The following table describes the arguments for the `resetAccount` command. 


| Name | Description | Required | 
| --- | --- | --- | 
|   `-force`   |   Specifies *not* to prompt for manual confirmation before performing the operation. Only advanced developers should use this argument.  Example: `-force`  |  No  | 
|   `‑help` or `‑h`   |   Displays the help for this operation.  Example: `-help`   |  No  | 
|   `-sandbox`   |   Runs this command in the Amazon Mechanical Turk sandbox. This argument takes precedence even if you specify the production web site in your `mturk.properties` file.   Example:`-sandbox`   |  No  | 

## Example
<a name="w2aab9c55b6"></a>

 The following examples for Unix and Windows show how to use the `resetAccount` command. 

### Unix
<a name="w2aab9c55b6b4"></a>

 The following example demonstrates how to call this command from Unix. 

```
./resetAccount.sh 
```

### Windows
<a name="w2aab9c55b6b6"></a>

 The following example demonstrates how to call this command from Microsoft Windows. 

```
resetAccount
```

## Output
<a name="w2aab9c55b8"></a>

These examples produce output similar to the following.

```
PLEASE READ THIS CAREFULLY

You are about to delete ALL your HITs from Amazon Mechanical Turk.
To confirm this operation, please press ENTER (or press Ctrl+C to abort):

--- Starting to reset account (10 HITs) ---
[2AQZM8YF9BTZYSHPKX30] Successfully deleted HIT (1/10)
[4AQZPBYWF1NZNBGZMGZZ] Successfully deleted HIT (2/10)
[2XAZ439GBWGZ57M0KX80] Successfully deleted HIT (3/10)
[4SPZGWZ41XDZS9YGTXM0] Successfully deleted HIT (4/10)
[4YKZ528SWH0TQTZ0JRPZ] Successfully deleted HIT (5/10)
[4WYZWAYD7AYJSCYT6J70] Successfully deleted HIT (6/10)
[38QGWV8SW2SZ3TY0KY5Z] Successfully deleted HIT (7/10)
[4XTZGSX1PR1ZGRSTCY0Z] Successfully deleted HIT (8/10)
[5WGMVNYC9RC6Q8W8K9WZ] Successfully deleted HIT (9/10)
--- Finished to reset account ---
  9 HITs have been deleted or were deleted previously.
  0 HITs failed to delete.
  1 HITs could not be deleted because they are currently being worked on.
  1 HITs are left in your account
```