Skip to content
Get started

Delete

client.teams.ipFilters.delete(stringfilterID, IPFilterDeleteParams { teamId } params, RequestOptionsoptions?): IPFilterDeleteResponse { deleted }
DELETE/teams/{teamId}/ip-filters/{filterId}

Delete a custom IP-detection filter for a team

ParametersExpand Collapse
filterID: string
params: IPFilterDeleteParams { teamId }
teamId: string

The team the filter belongs to

ReturnsExpand Collapse
IPFilterDeleteResponse { deleted }
deleted: boolean

True when the filter was deleted

Delete

import Scenario from '@scenario-labs/sdk';

const client = new Scenario({
  apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
  apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});

const ipFilter = await client.teams.ipFilters.delete('filterId', { teamId: 'teamId' });

console.log(ipFilter.deleted);
{
  "deleted": true
}
Returns Examples
{
  "deleted": true
}