delete_jobs
Remove all jobs from a specific feed in YubHub MCP Server. This permanent action clears job data for structured career pages.
Instructions
Delete all jobs for a specific feed. This action cannot be undone.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feedId | Yes | Feed ID whose jobs should be deleted |
Implementation Reference
- src/index.ts:924-944 (handler)The main handler function that executes the delete_jobs tool logic. It fetches feed details to get the job count before deletion, calls the API client to delete all jobs for the feed, and returns a success message with the number of jobs deleted.
private async deleteJobs({ feedId }: { feedId: string }) { const feedDetails = await this.apiClient.getFeedDetails(feedId); const jobsBefore = feedDetails.stats.total; await this.apiClient.deleteJobs(feedId); return { content: [ { type: 'text', text: `✅ Jobs deleted successfully **Feed**: ${feedDetails.feed.name} **Feed ID**: \`${feedId}\` **Jobs Deleted**: ${jobsBefore} All jobs for this feed have been removed. This action cannot be undone.`, }, ], }; } - src/index.ts:471-485 (schema)Tool registration with input schema defining the required 'feedId' parameter (string type) and validation constraints (required field, no additional properties allowed).
{ name: 'delete_jobs', description: 'Delete all jobs for a specific feed. This action cannot be undone.', inputSchema: { type: 'object', properties: { feedId: { type: 'string', description: 'Feed ID whose jobs should be deleted' } }, required: ['feedId'], additionalProperties: false } }, - src/index.ts:683-684 (registration)Switch case routing that maps the 'delete_jobs' tool name to its handler function.
case 'delete_jobs': return await this.deleteJobs(args as any); - src/api-client.ts:70-72 (helper)API client helper method that makes the HTTP DELETE request to the /api/feeds/{feedId}/jobs endpoint to delete all jobs for a specific feed.
async deleteJobs(feedId: string): Promise<{ message: string }> { return this.request(`/api/feeds/${feedId}/jobs`, { method: 'DELETE' }); }