Deleting a Tenant

Topics: General
Jan 17, 2012 at 7:28 PM

We're currently working with a client building a SaaS application on Orchard. The site is using MultiTenancy to host multiple customers' sites on one instance. The customers of the service will be storing data specific to their clients, some of which may be sensitive. Therefore, when a customer cancels their subscription to the service we need to completely delete the tenant, not simply deactive it.

Has anyone else done this and if so can you share any particular "gotchas" about doing it? We have a good idea of what needs to be deleted but want to be sure we don't miss anything.

Thanks,
Kevin 

Coordinator
Jan 17, 2012 at 7:40 PM

You should be able to do that by just removing the relevant folder under App_Data\Sites. If not using SqlCe you'll also want to clean the database for the tables related to that tenant.

Jan 17, 2012 at 10:24 PM

Okay, thanks. That's what we thought but I just wanted to put this out there in case there was anything else we weren't thinking about.