---
search:
  tags:
    - tasks
    - DELETE
seo:
  description: >-
    Removes the parent-child relationship between a… Reference for the DELETE
    /tasks/{identifier}/subtasks/{subtaskId} endpoint in the Leadtime Public API
    API.
sidebar:
  badge: DELETE
  label: Remove a subtask from a task
title: Remove a subtask from a task
type: openapi-operation
---
Removes the parent-child relationship between a task and its subtask by setting the subtask parentTaskId to null. The subtask itself is not deleted - it becomes a standalone task again. This is useful when reorganizing task hierarchies or when a subtask needs to be promoted to a main task. The parent task identifier can be either a UUID or a numeric shortNumber. The subtaskId must be a valid UUID. Requires Tasks.editAnyTitleAndDescription permission.

<Operation source="api-reference" id="taskscontroller-removesubtask" />
