delete_resume
Remove a LaTeX resume file from the LaTeX Resume MCP server to manage storage and organize your resume documents.
Instructions
Delete a LaTeX resume file.
Args:
filename: Name of the resume file to delete
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes |
Implementation Reference
- src/latex_resume_mcp/server.py:338-355 (handler)The main handler function for the 'delete_resume' tool. It deletes the specified LaTeX resume file from the resumes directory. Decorated with @mcp.tool(), which also handles registration with the MCP server. Uses helper functions ensure_dirs() and ensure_tex_extension().def delete_resume(filename: str) -> str: """ Delete a LaTeX resume file. Args: filename: Name of the resume file to delete """ ensure_dirs() filepath = get_resumes_dir() / ensure_tex_extension(filename) if not filepath.exists(): return json.dumps({"error": f"Resume '{filename}' not found"}) try: filepath.unlink() return json.dumps({"success": True, "deleted": str(filepath)}) except Exception as e: return json.dumps({"error": f"Error deleting file: {str(e)}"})
- src/latex_resume_mcp/server.py:338-355 (registration)The @mcp.tool() decorator on delete_resume registers it as an MCP tool with the FastMCP server instance.def delete_resume(filename: str) -> str: """ Delete a LaTeX resume file. Args: filename: Name of the resume file to delete """ ensure_dirs() filepath = get_resumes_dir() / ensure_tex_extension(filename) if not filepath.exists(): return json.dumps({"error": f"Resume '{filename}' not found"}) try: filepath.unlink() return json.dumps({"success": True, "deleted": str(filepath)}) except Exception as e: return json.dumps({"error": f"Error deleting file: {str(e)}"})