Skip to content
Get started

Delete

teams.ip_filters.delete(strfilter_id, IPFilterDeleteParams**kwargs) -> IPFilterDeleteResponse
DELETE/teams/{teamId}/ip-filters/{filterId}

Delete a custom IP-detection filter for a team

ParametersExpand Collapse
team_id: str
filter_id: str
ReturnsExpand Collapse
class IPFilterDeleteResponse: …
deleted: bool

True when the filter was deleted

Delete

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
ip_filter = client.teams.ip_filters.delete(
    filter_id="filterId",
    team_id="teamId",
)
print(ip_filter.deleted)
{
  "deleted": true
}
Returns Examples
{
  "deleted": true
}