# Use of DM - Stop Task

__*Using DM*__
__*DM task stopped*__


```
stop-task [-s "mysql-replica-01"]  task-name

{
    "op": "Stop",
    "result": true,
    "msg": "",
    "sources": [
        {
            "result": true,
            "msg": "",
            "source": "mysql-replica-01",
            "worker": "worker1"
        }
    ]
}
```
-------------------------------------------------------------
-s:
selectable
Specify a subtask to stop the data migration task on a specific MySQL source
If set, stop only subtasks of this task on the specified MySQL source
task-name | task-file:
Must choose
Specify the task name or task file path