This is an ArcGIS Pro Toolbox that will help you take ownership for all items that are owner by inactive users then delete them with one click.
The needed variables are:
AGOL or Portal Url:
Username
Password:
Inactive Owner Username:
Username to take ownership of the items:
Its pretty straight forward and super handy.