Remove Instagram accounts, Facebook pages, or web aggregators from sources.yaml
Removes Instagram accounts, Facebook pages, or web aggregators from your sources configuration.
/plugin marketplace add aniketpanjwani/local_media_tools/plugin install newsletter-events@local-media-toolsRemove existing event sources from your configuration without editing YAML manually.
Sources are stored in ~/.config/local-media-tools/sources.yaml.
# Remove Instagram account
/newsletter-events:remove-source @localvenue
# Remove multiple Instagram accounts
/newsletter-events:remove-source @venue1 @venue2 @venue3
# Remove Facebook page
/newsletter-events:remove-source https://facebook.com/thevenue/events
# Remove web aggregator
/newsletter-events:remove-source https://oldsite.com
# Remove by name
/newsletter-events:remove-source "Local Venue"
# Mix of sources
/newsletter-events:remove-source @oldvenue https://facebook.com/closedbar/events
| Input Pattern | Matches |
|---|---|
@handle | Instagram account by handle |
handle | Instagram account by handle |
facebook.com/*/events | Facebook page by URL |
| HTTP/HTTPS URL | Web aggregator by URL |
"Name" | Any source by name |
The skill parses your input to detect what to remove:
@ prefix or alphanumeric handlesfacebook.comEach identifier is matched against existing sources.
If no match found:
Source not found: @unknownhandle
If ambiguous match (name matches multiple types):
Multiple sources match 'venue':
1. @venue (Instagram) - Local Venue
2. facebook.com/venue/events (Facebook) - The Venue
Which one(s) to remove? (Enter numbers or 'all'):
If removing 4+ sources, confirmation is requested:
About to remove 5 sources. Continue? (y/n)
sources.yaml.YYYYMMDDHHMMSS.backuppriority_handles)A summary shows what was removed:
Removing sources...
✓ Removed @localvenue (Local Venue) from Instagram accounts
✓ Removed @oldbar (Old Bar) from Instagram accounts
Also removed from priority_handles
✗ Not found: @unknownhandle
Summary: 2 removed, 1 not found
Config backup: sources.yaml.20250120143022.backup
To undo: cp ~/.config/local-media-tools/sources.yaml.20250120143022.backup ~/.config/local-media-tools/sources.yaml
Remaining sources: 4 (run /list-sources to view)
| Feature | Description |
|---|---|
| Automatic backup | Config saved before any changes |
| Validation | Config validated after removal |
| Auto-rollback | Backup restored if validation fails |
| Orphan cleanup | Related references (priority_handles) cleaned up |
| Error | Response |
|---|---|
| sources.yaml missing | "Run /newsletter-events:setup first" |
| No sources configured | "No sources configured. Nothing to remove." |
| Source not found | "Source not found: @handle" |
| Invalid YAML after removal | Restore backup, show error |
If you remove the wrong source, restore from backup:
cp ~/.config/local-media-tools/sources.yaml.TIMESTAMP.backup ~/.config/local-media-tools/sources.yaml
| Command | Description |
|---|---|
/newsletter-events:list-sources | View all configured sources |
/newsletter-events:add-source | Add new sources |
/newsletter-events:research | Scrape configured sources |