Skip to main content
Glama

delete_symbol

Remove TypeScript/JavaScript symbols and their references from code files to clean up unused code and maintain project structure.

Instructions

Delete a TypeScript/JavaScript symbol (variable, function, class, etc.) and all its references

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYesRoot directory for resolving relative paths
filePathYesFile path containing the symbol (relative to root)
lineYesLine number (1-based) or string to match in the line
symbolNameYesName of the symbol to delete
removeReferencesNoAlso delete all references to the symbol

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SomeiLam/news-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server