Canceling Your Automation Task

Why Cancel?

Canceling a task prevents it from executing in the future.

Useful when:

  • Task logic is no longer needed.

  • You made a mistake in the task parameters.

  • You want to avoid draining your wallet from recurring executions.

1

Run the Cancel Command

supra move automation cancel \
  --task-index <TASK_INDEX> \
  --rpc-url <TESTNET or MAINNET>

Parameter Guide

--task-index: The unique identifier of the task you want to cancel. Each task is assigned an index when registered.

How do you find your --task-index?

To find your task index:

  1. Enter your deployer address

  2. Navigate to the “Tasks” tab

  3. Locate the active task you want to cancel

  4. Find the Task ID value listed with the task details

You’ll use this index in your cancel command.

2

Understand Parameters

supra move automation cancel \
  --task-index 347 \
  --rpc-url https://rpc-testnet.supra.com

If you see this:

"vm_status": "Executed successfully"

You have successfully cancelled the automation task!

After Canceling

  • The task is no longer active

  • No additional executions will occur

  • You won’t be charged automation or gas fees for that task anymore

Post-Cancel: Sanity Check

  • Visit SupraScan

  • Search your deployer address

  • Navigate to the Tasks tab or check your function call history

  • Confirm that the automated function is no longer executing

Last updated