---
title: "Delete smart notification rule"
method: DELETE
path: "/v2/insights/smart_notification_rules/{rule_id}"
tags: ["smart_notification_rules"]
---

# Delete smart notification rule

`DELETE /v2/insights/smart_notification_rules/{rule_id}`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/insights/smart_notification_rules/{rule_id}`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/insights/smart_notification_rules/:rule_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a smart notification rule.

## Path parameters

- `rule_id` integer, required

## Response `204`

Deleted successfully

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
