Jump to content

Replacing WHMCS' Data Retention

Recommended Posts

The built in Data Retention settings of WHMCS are bad, to put it mildly.

During the past few months, I've been building a module that replaces the data retention functionality. This is the current functionality:

  • Allow clients to request deletion
    • Deletion needs to be confirmed with a token sent by email
    • Clients cannot request a delete if they have active services
    • Request is only valid for 1 hour and can be cancelled manually
  • Automatically delete clients after X months
    • Clients will get notified 30 days and 1 day before deletion
    • If clients have active DNS zones in DNSManager by Modules Garden, they will be excluded
  • Delete orphan users (users not associated with any account)
    • For some reason, WHMCS doesn't delete users when deleting an account (or at least it didn't use to). We found more than 2500 orphan users in our WHMCS installation
  • Delete orphan tickets
  • Delete user invites
  • Dry Run
    • Enabling Dry Run will not delete anything. It will send admins a daily email informing what clients or orphan users would have been deleted

I'm planning to implement a way for clients to download all data associated with their account.

We're using this in production on one of our installations already but I'd like to know if anyone can come up with something I haven't thought about or what I could do to improve this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated