This script was used to remove the lucid/lpia DistroArchSeries as well as all the artefacts that were related to it:
lines 1-27: a temporary table that will hold (the keys of) the binary builds related to the doomed DistroArchSeries is created and populated
- lines 28-44: a temporary table that will hold the binary files resulting from the builds is created and populated
- lines 45-56: remove ancillary binary build records
- lines 57-73: remove or expire the binary files resulting from the builds
- lines 74-97: remove binary publishing records and releases related to the builds as well as the actual build records
finally: remove any other data relating to the doomed DistroArchSeries