buddypress_delete_notification
Remove a specific notification from a BuddyPress community site by providing its ID to manage user alerts and clean up notification lists.
Instructions
Delete a notification
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Notification ID |
Implementation Reference
- src/index.ts:492-501 (registration)Registration of the 'buddypress_delete_notification' tool, including its description and input schema.name: 'buddypress_delete_notification', description: 'Delete a notification', inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Notification ID', required: true }, }, required: ['id'], }, },
- src/index.ts:494-500 (schema)Input schema for the buddypress_delete_notification tool defining the required 'id' parameter.inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Notification ID', required: true }, }, required: ['id'], },
- src/index.ts:722-724 (handler)Handler logic that executes a DELETE request to the BuddyPress notifications endpoint using the provided notification ID.else if (name === 'buddypress_delete_notification') { result = await buddypressRequest(`/notifications/${args.id}`, 'DELETE'); }