I tried to use deleteArchivedRevisions.php
To test how it worked, I created new page, make several revisions. Then I deleted the page.
Then I run php deleteArchivedRevisions.php --delete
The table archive became empty.
But the tables content and text were not modified. This is actual behavior.
Expected behavior: rows in tables content and text which corresponds to deleted page should be removed.
I tried other different scenarios, but I was not able to get content and text tables trimmed.
It looks like the file deleteArchivedRevisions.php (https://github.com/wikimedia/mediawiki/blob/master/maintenance/deleteArchivedRevisions.php) is outdated after introducing "Multi-Content Revisions/Content Meta-Data" described at https://www.mediawiki.org/wiki/Multi-Content_Revisions/Content_Meta-Data.