diff --git a/osu.Game/Beatmaps/BeatmapDatabase.cs b/osu.Game/Beatmaps/BeatmapDatabase.cs index 521471e401..81886293c4 100644 --- a/osu.Game/Beatmaps/BeatmapDatabase.cs +++ b/osu.Game/Beatmaps/BeatmapDatabase.cs @@ -107,6 +107,9 @@ namespace osu.Game.Beatmaps } if (b.Metadata != null) Connection.Delete(b.Metadata); + + // many-to-many join table entries are not automatically tidied. + Connection.Table().Delete(f => f.BeatmapSetInfoID == b.ID); Connection.Delete(b); } catch (Exception e)