INNER CODE UNIT · Python
remove_agent_files
thinh-vu/vnstock · vnstock/__init__.py:225
def remove_agent_files(*targets: str):
"""
Remove the vnstock block from rules files already written.
Files that held nothing else are deleted; the user's own content is kept.
Pair this with `disable_agent()`, otherwise the next `setup_agent()` writes them again.
Group names: "global" for the three machine-wide files, "legacy" for the
paths versions before 2.6.0 wrote to and this one no longer touches, "all"
for everything.
"""
from vnstock.core.utils.agents import remove_agent_files as _remove
return _remove(*targets)
# Import no longer calls setup_agent() (removed in 4.0.9). Earlier versions wrote into
# AI assistants' instruction files on every `import vnstock`, including global files