Skip to content

Ghost Accounts & Invoice Cleaner

Ghost Accounts & Invoice Cleaner is a Paymenter extension for hosting providers who want to clear out client accounts that never did anything, invoices that were never paid, and log rows nobody needs any more. It adds three admin pages. Everything is done by hand from those pages: the extension has no scheduled task and never deletes anything on its own.

In the Paymenter admin area the extension is listed as Ghost Accounts Cleaner.

What it does

Ghost Accounts

  • Lists every client account (users without an admin role) with registration date, last login, days inactive, paid invoices, active services and a risk score from 0 to 100.
  • Shows the signals behind the score: never paid, no orders, no services, no tickets, never logged in, disposable e-mail domain.
  • Filters for accounts with no login for 30, 60 or 90 days, accounts that never paid, accounts that never logged in, and likely bot or dead accounts.
  • Deletes accounts one at a time or in bulk. Accounts with paid invoices, active or suspended services, or open tickets are skipped unless you turn those protections off. Accounts with an admin role are never deleted.

Invoice Cleaner

  • Lists invoices older than a number of days you set, limited to the statuses you choose.
  • Deletes them one at a time or in bulk.
  • Starts in dry run mode, where the buttons only report what would be deleted.

Log Cleaner

  • Shows the row count of the authentication log, activity log and failed jobs tables, and how many rows are older than the retention you set for each.
  • Deletes the old rows per table or for all tables at once.
  • Starts in dry run mode as well.

Permissions

  • Six role permissions separate viewing from deleting for each of the three pages.

What your customers see

Nothing. The extension has no client area pages, sends no e-mails and does not notify a customer whose account or invoice is deleted.

Requirements

The extension's README states:

  • Paymenter 1.4.7 or newer
  • PHP 8.1 or newer

The extension creates no database tables of its own.

Pages