Skip to content
Get started

Delete

projects.task_source.delete(strproject_id) -> TaskSourceDeleteResponse
DELETE/projects/{projectId}/task-source

Delete the project’s task source. Team admins only.

ParametersExpand Collapse
project_id: str
ReturnsExpand Collapse
class TaskSourceDeleteResponse: …
deleted: bool

Whether a task source was configured and is now deleted

Delete

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
task_source = client.projects.task_source.delete(
    "projectId",
)
print(task_source.deleted)
{
  "deleted": true
}
Returns Examples
{
  "deleted": true
}