Skip to main content
Glama

buddypress_delete_member

Remove a user from a BuddyPress community site. Optionally reassign their content to another member to preserve community contributions.

Instructions

Delete a member

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser ID
reassignNoUser ID to reassign content to

Implementation Reference

  • Handler function that executes the deletion of a BuddyPress member by calling the API endpoint `/members/{id}` with optional reassign parameter.
    else if (name === 'buddypress_delete_member') { const { id, reassign } = args as any; const params = reassign ? `?reassign=${reassign}` : ''; result = await buddypressRequest(`/members/${id}${params}`, 'DELETE'); }
  • src/index.ts:170-181 (registration)
    Tool registration in the tools array, including name, description, and input schema definition.
    { name: 'buddypress_delete_member', description: 'Delete a member', inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'User ID', required: true }, reassign: { type: 'number', description: 'User ID to reassign content to' }, }, required: ['id'], }, },
  • Input schema defining parameters for the buddypress_delete_member tool: required 'id' and optional 'reassign'.
    inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'User ID', required: true }, reassign: { type: 'number', description: 'User ID to reassign content to' }, }, required: ['id'], },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vapvarun/buddypress-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server