Skip to main content
Glama

delete_symbol

Remove a TypeScript/JavaScript symbol and its references from code files. Specify the root directory, file path, line number, and symbol name to clean up unused or redundant code efficiently.

Instructions

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

Input Schema

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

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