TickTick icon

TickTick

Interact with TickTick tasks and projects

Habit → Delete

AI-generated

Overview

This node operation deletes a specified habit from the TickTick application. It is useful for users who want to programmatically remove habits they no longer want to track or manage within their TickTick account. For example, a user might automate the cleanup of outdated habits or integrate habit deletion into a larger workflow that manages task and habit lifecycle.

Use Case Examples

  1. Deleting a habit by selecting it from a list of existing habits.
  2. Deleting a habit by specifying its unique ID.

Properties

Name Meaning
Authentication Selects the authentication method to use for the TickTick API (Access Token V1, Email/Password V2, or OAuth2 V1).
Habit The habit to delete, which can be selected from a list of existing habits or specified by its ID.

Output

JSON

  • json
    • error - Error message if the deletion operation fails.

Dependencies

  • Requires TickTick API credentials depending on the chosen authentication method, specifically the TickTick Session API (V2) credential for habit deletion.

Troubleshooting

  • If using Access Token (V1 API) or OAuth2 (V1 API) authentication, habit deletion will not work because habits require the TickTick Session API (V2) credential. The node displays a notice to inform users of this requirement.
  • Common errors include unsupported operation errors if the resource or operation is incorrect, or API errors if the habit ID is invalid or the authentication fails. Users should ensure the habit ID is correct and the appropriate credentials are used.

Discussion