```ruby
# This DfT publication 'ict-spend' has one statistical data set
# which is superseded and has the slug 'average-house-prices'
# so assume this is a bad relationship and disconnect the two.
pub = Publication.find(392444)
pub.statistical_data_sets.select! { |ds| ds.id != 14779 }
pub.save!
```

Remove relationship to stats data set
user
```ruby
# This DfT publication 'ict-spend' has one statistical data set
# which is superseded and has the slug 'average-house-prices'
# so assume this is a bad relationship and disconnect the two.
pub = Publication.find(392444)
data_set = StatisticalDataSet.find(14779)
pub.statistical_data_sets.delete(data_set)
```
assistant