pub async fn delete_task(client: &ApiClient, gid: &str) -> Result<(), ApiError>
Delete a task permanently.
Returns an error if the API request fails or if the response is invalid.