This topic describes how to delete a time-based schedule in the Serverless Workflow console or by using Alibaba Cloud CLI.

Prerequisites

A time-based schedule is created. For more information, see Create a time-based schedule.

Delete a time-based schedule in the Serverless Workflow console

  1. Log on to the Serverless Workflow console.
  2. In the left-side navigation pane, click Flows.
  3. On the Flows page, click the name of the flow.
    workflow-name
  4. On the Flows page, click Schedule.
  5. On the Schedule tab, find the time-based schedule and click Delete in the Action column.
    delete-schedule
  6. In the Delete Schedule message, click OK.

Delete a time-based schedule by using Alibaba Cloud CLI

Before you use the Alibaba Cloud CLI, you must install and configure it.

  1. Optional: Run the following command to view the request parameters of the operation:
    aliyun fnf DeleteSchedule help

    Expected output:

    Alibaba Cloud Command Line Interface Version 3.0.45
    
    Product: fnf (FunctionFlow)
    Link:    https://xxxxxxx.html
    
    Parameters:
      --FlowName     String  Required
      --ScheduleName String  Required
      --RequestId    String  Optional
  2. Run the following command to delete a time-based schedule:
    aliyun fnf DeleteSchedule --FlowName test --ScheduleName schedule-test

    Expected output:

    {
        "RequestId": "c11629d3-7087-8ec8-5682-8254dbf14fce"
    }