Skip to main content
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 开发过程中创建的测试或重复爬虫
  • 在将工作负载迁移到其他爬虫后停用原爬虫

相关

授权

Authorization
string
header
必填

Use your Bright Data API Key as a Bearer token in the Authorization header.

How to authenticate:

  1. Obtain your API Key from the Bright Data account settings at https://brightdata.com/cp/setting/users
  2. Include the API Key in the Authorization header of your requests
  3. Format: Authorization: Bearer YOUR_API_KEY

Example:

Learn how to get your Bright Data API key: https://docs.brightdata.com/api-reference/authentication

路径参数

scraper_id
string
必填

ID of the Scraper Studio scraper to delete. In API parameters, this ID may also be referred to as collector_id.

查询参数

reason
string

Reason for deleting the scraper. Used for tracking or audit purposes.

响应

Scraper deleted successfully

The response is of type string.