delete_release_from_user_collection_folder
Remove a specific release instance from a user's Discogs collection folder by providing username, folder ID, release ID, and instance ID. Manage music collections efficiently.
Instructions
Remove an instance of a release from a user's collection folder. The folder_id must be non-zero.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | ||
| instance_id | Yes | ||
| release_id | Yes | ||
| username | Yes |
Implementation Reference
- src/tools/userCollection.ts:65-82 (handler)Tool definition including the handler (execute function) that performs the deletion using UserServiceexport const deleteReleaseFromUserCollectionFolderTool: Tool< FastMCPSessionAuth, typeof UserCollectionReleaseDeletedParamsSchema > = { name: 'delete_release_from_user_collection_folder', description: `Remove an instance of a release from a user's collection folder. The folder_id must be non-zero.`, parameters: UserCollectionReleaseDeletedParamsSchema, execute: async (args) => { try { const userService = new UserService(); await userService.collection.deleteReleaseFromFolder(args); return 'Release deleted successfully'; } catch (error) { throw formatDiscogsError(error); } }, };
- src/types/user/collection.ts:121-124 (schema)Zod schema defining the input parameters: username, folder_id (>=1), release_id, and instance_idexport const UserCollectionReleaseDeletedParamsSchema = UserCollectionFolderReleaseParamsSchema.extend({ instance_id: z.number().int(), });
- src/tools/userCollection.ts:331-331 (registration)Tool registration within the registerUserCollectionTools functionserver.addTool(deleteReleaseFromUserCollectionFolderTool);
- src/tools/index.ts:20-20 (registration)Invocation of registerUserCollectionTools which registers this and other user collection toolsregisterUserCollectionTools(server);