delete_resume
Remove a LaTeX resume file from the LaTeX Resume MCP server to manage storage and maintain organized resume collections.
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:337-355 (handler)The delete_resume tool handler function, registered via @mcp.tool() decorator. It deletes the specified LaTeX resume file (.tex) from the resumes directory after ensuring directories exist and filename has .tex extension. Returns JSON success or error message.@mcp.tool() 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)}"})