[GH-ISSUE #2059] [Bug]: Removing a Podcast didn't remove all the episodes #1086

Closed
opened 2026-02-26 02:35:11 +03:00 by kerem · 4 comments
Owner

Originally created by @lewislarsen on GitHub (Aug 20, 2025).
Original GitHub issue: https://github.com/koel/koel/issues/2059

Originally assigned to: @phanan on GitHub.

Read the Troubleshooting guide.

  • I have read and followed the Troubleshooting guide

Reproduction steps

  1. Import a podcast into Koel.
  2. Navigate to the podcast in Koel and unsubscribe from the podcast.
  3. Search and you'll see the podcasts still show up. (Same for database records)

Expected behavior

All traces of the podcast should disappear from Koel, with the search index being rebuilt as well.

Actual behavior

The podcast still existed in the podcasts and the episodes in the songs table.

I used the following command to drop the entries from the database (and then ran php artisan koel:search:import) alongside removing the stray record from the podcasts table.

DELETE FROM songs 
WHERE episode_metadata IS NOT NULL;

Logs

Not relevant here.

Koel version

Koel v7.12.0 Community Edition

How did you install Koel?

Compiled from source

Additional information

  • Server OS: Ubuntu 24
  • PHP version: 8.4.3
  • Database: Postgres
  • Node version: Node 10.8.2
  • Browser & device: Firefox 142.0 & Macbook Pro
  • Additional context:
Originally created by @lewislarsen on GitHub (Aug 20, 2025). Original GitHub issue: https://github.com/koel/koel/issues/2059 Originally assigned to: @phanan on GitHub. ### Read the Troubleshooting guide. - [x] I have read and followed the Troubleshooting guide ### Reproduction steps 1. Import a podcast into Koel. 2. Navigate to the podcast in Koel and unsubscribe from the podcast. 3. Search and you'll see the podcasts still show up. (Same for database records) ### Expected behavior All traces of the podcast should disappear from Koel, with the search index being rebuilt as well. ### Actual behavior The podcast still existed in the `podcasts` and the episodes in the `songs` table. I used the following command to drop the entries from the database (and then ran `php artisan koel:search:import`) alongside removing the stray record from the `podcasts` table. ``` DELETE FROM songs WHERE episode_metadata IS NOT NULL; ``` ### Logs Not relevant here. ### Koel version Koel v7.12.0 Community Edition ### How did you install Koel? Compiled from source ### Additional information - **Server OS**: Ubuntu 24 - **PHP version**: 8.4.3 - **Database**: Postgres - **Node version**: Node 10.8.2 - **Browser & device**: Firefox 142.0 & Macbook Pro - **Additional context**:
kerem closed this issue 2026-02-26 02:35:11 +03:00
Author
Owner

@lewislarsen commented on GitHub (Aug 20, 2025):

If this is intended behaviour, perhaps a checkbox on the modal asking if they wish to purge this podcast from Koel?

I'm not sure if it's intentional or not, since the podcast itself is gone from 'Podcasts' and the episodes still show up in the search results which seems a little unusual.

<!-- gh-comment-id:3207416458 --> @lewislarsen commented on GitHub (Aug 20, 2025): If this is intended behaviour, perhaps a checkbox on the modal asking if they wish to purge this podcast from Koel? I'm not sure if it's intentional or not, since the podcast itself is gone from 'Podcasts' and the episodes still show up in the search results which seems a little unusual.
Author
Owner

@phanan commented on GitHub (Aug 20, 2025):

This is indeed the intended behavior, because multiple users can subscribe to the same podcasts, and deleting a podcast would remove all of their data.

<!-- gh-comment-id:3207564838 --> @phanan commented on GitHub (Aug 20, 2025): This is indeed the intended behavior, because multiple users can subscribe to the same podcasts, and deleting a podcast would remove all of their data.
Author
Owner

@lewislarsen commented on GitHub (Aug 20, 2025):

This is indeed the intended behavior, because multiple users can subscribe to the same podcasts, and deleting a podcast would remove all of their data.

Good to know, thank you! :)

<!-- gh-comment-id:3207734344 --> @lewislarsen commented on GitHub (Aug 20, 2025): > This is indeed the intended behavior, because multiple users can subscribe to the same podcasts, and deleting a podcast would remove all of their data. Good to know, thank you! :)
Author
Owner

@phanan commented on GitHub (Aug 20, 2025):

You're welcome :) You have a point, though: How would one totally purge a podcast, then? I'll think about it a bit — if you have an idea, please let me know.

<!-- gh-comment-id:3207781078 --> @phanan commented on GitHub (Aug 20, 2025): You're welcome :) You have a point, though: How would one totally purge a podcast, then? I'll think about it a bit — if you have an idea, please let me know.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1086
No description provided.