jfrog_delete_permission_resource
Remove a specific resource type (artifact, release_bundle, or build) from a permission target on the JFrog MCP Server using this tool.
Instructions
Delete a specific resource type from a permission target
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the permission target | |
| resourceType | Yes | The type of resource to delete |
Implementation Reference
- tools/permissions.ts:159-164 (handler)Core handler function that executes the DELETE API request to JFrog to remove a specific resource type (artifact, release_bundle, or build) from a permission target.export async function deletePermissionResource(name: string, resourceType: "artifact" | "release_bundle" | "build") { await jfrogRequest(`/access/api/v2/permissions/${name}/${resourceType}`, { method: "DELETE", }); return { success: true }; }
- tools/permissions.ts:276-279 (schema)Input schema definition for the tool parameters: permission target name and resource type.inputSchema: zodToJsonSchema(z.object({ name: z.string().describe("The name of the permission target"), resourceType: z.enum(["artifact", "release_bundle", "build"]).describe("The type of resource to delete") })),
- tools/permissions.ts:273-286 (registration)Tool registration object specifying name, description, input schema, and handler wrapper.const deletePermissionResourceTool = { name: "jfrog_delete_permission_resource", description: "Delete a specific resource type from a permission target", inputSchema: zodToJsonSchema(z.object({ name: z.string().describe("The name of the permission target"), resourceType: z.enum(["artifact", "release_bundle", "build"]).describe("The type of resource to delete") })), // //outputSchema: zodToJsonSchema(z.object({ // success: z.boolean() // })), handler: async (args: any) => { return await deletePermissionResource(args.name, args.resourceType); } };
- tools/permissions.ts:288-298 (registration)Exports the array of all permission-related tools, including jfrog_delete_permission_resource, for use in MCP tool registration.export const PermissionsTools = [ listPermissionTargetsTool, getPermissionTargetTool, createPermissionTargetTool, updatePermissionTargetTool, deletePermissionTargetTool, getPermissionResourceTool, updatePermissionResourceTool, replacePermissionResourceTool, deletePermissionResourceTool ];