Delete a Scraper Studio scraper
爬虫与作业管理
删除 Scraper Studio 爬虫
使用 DELETE /dca/collector/ 从您的 Bright Data 账户中删除 Scraper Studio 爬虫,删除后爬虫将从 My Scrapers 中移除且无法再运行。
DELETE
Delete a Scraper Studio scraper
使用
将返回的
省略
DELETE /dca/collector/{scraper_id} 从您的账户中删除 Bright Data Scraper Studio 爬虫。删除爬虫会将其从 My Scrapers 中移除,并阻止新的手动、定时或 API 触发的运行。
该端点不接受请求体,成功时返回纯文本响应体 OK,而非 JSON。请按文本读取响应,不要对其调用 JSON 解析器。
如何查找爬虫 ID
使用爬虫列表端点查找您要删除的爬虫 ID:id 值用作 scraper_id 路径参数。在 API 参数中,该 ID 有时也称为 collector_id。完整参数列表请参见列出 Scraper Studio 爬虫。
记录删除原因
通过可选的reason 查询参数记录删除爬虫的原因,用于跟踪或审计:
reason 即可在不记录原因的情况下删除爬虫。
何时使用该端点
- 移除不再运行的爬虫,使其不再出现在 My Scrapers 中
- 清理在 Scraper Studio 开发过程中创建的测试或重复爬虫
- 在将工作负载迁移到其他爬虫后停用原爬虫
相关
- 列出 Scraper Studio 爬虫:删除前查找
scraper_id - 列出 Scraper Studio 作业:查看爬虫已运行的作业
- 取消 Scraper Studio 作业:停止单个作业而不删除爬虫
授权
Use your Bright Data API Key as a Bearer token in the Authorization header.
How to authenticate:
- Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
- Include the API Key in the Authorization header of your requests
- Format:
Authorization: Bearer YOUR_API_KEY
Example:
Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication
路径参数
ID of the Scraper Studio scraper to delete. In API parameters, this ID may also be referred to as collector_id.
查询参数
Reason for deleting the scraper. Used for tracking or audit purposes.
响应
Scraper deleted successfully
The response is of type string.