Ian Grieve has a SQL Script to Delete Unused Segments at www.azurecurve.co.uk/2019/05/sql-script-to-delete-unused-segments/