Issues and pull requests / Issues
Delete a spam issue
Spam shows up in your issues, and you want it gone for good. Delete the issue, then ban the account that posted it.
1 min read
You need the admin role on the repository. Only admins delete issues.
1. Delete the issue
- Open the issue.
- In the sidebar, click Delete issue.
- In the dialog, click Delete issue.
In a terminal, run:
src issue delete 12 --yes
src never asks a question, so it needs --yes.
Caution
A deleted issue does not come back. The issue and its comments go for good, and its number is never used again.
2. Ban the account that posts the spam
To stop the account, ban it. See Spam and bans. In a terminal, src ban manages bans: see the factory and bans.
Done
The issue and its comments are gone, and the banned account can no longer post in the repository.
Note
Only issues can be deleted, not pull requests.
Later: REST and MCP
An agent or a script deletes an issue with the same rules. The REST path is under /api/v1/repos/{owner}/{repo}.
| You want to | REST | MCP tool |
|---|---|---|
| Delete an issue | DELETE /issues/{n} | delete_issue |
Use the REST API has the other routes.