If a file has multiple revisions, sysops can delete any of the older versions. On the web version, this translates to action=delete with oldimage parameter being provided; something like https://test.wikipedia.org/w/index.php?title=File:Bottest.png&action=delete&oldimage=20210106143243%21Bottest.png
MW API allows this through API:Delete as well; similar to above, action should be set to delete and oldimage should be provided.
Pywikibot currently does not support it. While _apisite.py has a deletepage() method, that can only be used to delete a page as a whole. We should add support for this in pywikibot.