Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ task_id = client.create_sequential_pcd_task(
11,
12,
12,
12
12
],
"autogenerated": True,
},
Expand All @@ -1578,7 +1578,7 @@ task_id = client.create_sequential_pcd_task(
21,
22,
22,
22
22
],
"autogenerated": False,
},
Expand Down Expand Up @@ -1639,7 +1639,7 @@ task_id = client.update_sequential_pcd_task(
1,
2,
2,
2
2
],
"autogenerated": False,
},
Expand All @@ -1653,7 +1653,7 @@ task_id = client.update_sequential_pcd_task(
11,
12,
12,
12
12
],
"autogenerated": False,
},
Expand Down Expand Up @@ -1764,6 +1764,14 @@ Delete a single task.
client.delete_task(task_id="YOUR_TASK_ID")
```

#### Delete Task Annotation

Delete annotations in a task.

```python
client.delete_task_annotations(task_id="YOUR_TASK_ID")
```

#### Get Tasks Id and Name map

```python
Expand Down
9 changes: 9 additions & 0 deletions fastlabel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1940,6 +1940,15 @@ def delete_task(self, task_id: str) -> None:
endpoint = "tasks/" + task_id
self.api.delete_request(endpoint)

# Task Annotations Delete

def delete_task_annotations(self, task_id: str) -> None:
"""
Delete annotations in a task.
"""
endpoint = "tasks/" + task_id + "/task-annotations"
self.api.delete_request(endpoint)

# Integrate Task

def find_integrated_image_task_by_prefix(
Expand Down