Deleting a project or section in the Todoist API deletes all its tasks. Since this action could be quite destructive, it might be worth putting some protection measures in place. For example, the deletion function could by default give an error if the project or section has any tasks, unless an override parameter is given.