Skip to content
Start here

Delete Threat Signals feed

client.cloudforceOne.threatSignals.feeds.delete(stringfeedID, FeedDeleteParams { account_id } params, RequestOptionsoptions?): FeedDeleteResponse { id, category_id, category_name, 12 more }
DELETE/accounts/{account_id}/cloudforce-one/v2/threat-signals/feeds/{feed_id}

Unsubscribes the account from a Threat Signals feed and deletes its articles.

Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Accepted Permissions (at least one required)
Cloudforce One Write
ParametersExpand Collapse
feedID: string

UUID of the Threat Signals feed

formatuuid
params: FeedDeleteParams { account_id }
account_id: string
ReturnsExpand Collapse
FeedDeleteResponse { id, category_id, category_name, 12 more }
id: string
formatuuid
category_id: string | null

Feed category identifier. Null when unset.

category_name: string | null

Display name of the feed category. Null when unset or unresolvable.

created_at: string
curated_feed_id: string | null

Curated catalog feed this subscription was created from. Null for custom feeds.

display_name: string | null
enabled: boolean
last_polled_at: string | null
poll_interval_s: number
source_type: string

custom for a feed added by URL, curated for a curated catalog feed.

status: string

Polling health: active, or error after a failed poll.

subscribed_at: string | null
title: string | null
updated_at: string
url: string

Delete Threat Signals feed

import Cloudflare from 'cloudflare';

const client = new Cloudflare({
  apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});

const feed = await client.cloudforceOne.threatSignals.feeds.delete(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  { account_id: 'account_id' },
);

console.log(feed.id);
{
  "errors": [
    {
      "message": "message"
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 0,
      "custom_feed_count": 0,
      "custom_feed_limit": 0,
      "expected": "expected",
      "path": [
        "string"
      ],
      "reason": "threat_signals_feed_limit"
    }
  ],
  "result": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "category_id": "category_id",
    "category_name": "category_name",
    "created_at": "created_at",
    "curated_feed_id": "curated_feed_id",
    "display_name": "display_name",
    "enabled": true,
    "last_polled_at": "last_polled_at",
    "poll_interval_s": 0,
    "source_type": "custom",
    "status": "active",
    "subscribed_at": "subscribed_at",
    "title": "title",
    "updated_at": "updated_at",
    "url": "url"
  },
  "success": true
}
Returns Examples
{
  "errors": [
    {
      "message": "message"
    }
  ],
  "messages": [
    {
      "message": "message",
      "code": 0,
      "custom_feed_count": 0,
      "custom_feed_limit": 0,
      "expected": "expected",
      "path": [
        "string"
      ],
      "reason": "threat_signals_feed_limit"
    }
  ],
  "result": {
    "id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "category_id": "category_id",
    "category_name": "category_name",
    "created_at": "created_at",
    "curated_feed_id": "curated_feed_id",
    "display_name": "display_name",
    "enabled": true,
    "last_polled_at": "last_polled_at",
    "poll_interval_s": 0,
    "source_type": "custom",
    "status": "active",
    "subscribed_at": "subscribed_at",
    "title": "title",
    "updated_at": "updated_at",
    "url": "url"
  },
  "success": true
}