PPA publishes binaries despite source being deleted

Asked by Michał Sawicz

We had an unnecessary upload into a PPA, which we have since deleted:

https://launchpad.net/~mir-team/+archive/ubuntu/rc/+packages?field.name_filter=mir&field.status_filter=&field.series_filter=focal

But the published binaries are still (more than 12h later) ones from the deleted source:

```plain
$ apt-cache policy libmiral-dev
libmiral-dev:
  Installed: (none)
  Candidate: 3.8.0.2.13.1~rc3-g1e1161f32d-0ubuntu20.04
  Version table:
     3.8.0.2.13.1~rc3-g1e1161f32d-0ubuntu20.04 500
        500 http://ppa.launchpad.net/mir-team/rc/ubuntu focal/main amd64 Packages
     2.9.0.1.7.1-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
```

Is this by design? Does it just take time?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Michał Sawicz
Solved:
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

This can happen if you deleted the source while publishing of the binaries was still in progress. Repeat the deletion and it should all go away properly.

Revision history for this message
Michał Sawicz (saviq) said :
#2

OK managed to resolve this by:

```python
archive = lp.archives.getByReference(reference='~mir-team/ubuntu/rc')
source = archive.getPublishedSources(source_name='mir', exact_match=True, version='2.13.1~rc3-g1e1161f32d-0ubuntu20.04')[0]
source.requestDeletion()
```

It took its time, but finally resolved. Thanks!