# How to enable history cleaning for more than one tenant

**URL:** <https://forum.flowable.org/t/how-to-enable-history-cleaning-for-more-than-one-tenant/8955>\
**Category:** Flowable Engine\
**Created:** [February 5, 2022, 7:16am UTC](https://forum.flowable.org/t/how-to-enable-history-cleaning-for-more-than-one-tenant/8955 "2022-02-05T07:16:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnapal](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@krishnapal](https://forum.flowable.org/u/krishnapal)\
**Post date:** [February 5, 2022, 7:16am UTC](https://forum.flowable.org/t/how-to-enable-history-cleaning-for-more-than-one-tenant/8955/1 "2022-02-05T07:16:45Z")

</div>

Hi -

I am using flowable 6.5.0  
I am trying to use Shared Engine/Multi Schema process engine configuration based on this link:

> **[Multitenancy in Flowable](https://www.flowable.com/blog/multitenancy-in-flowable)**
>
> Authors: José Antonio Álvarez, Simon Maier   The concept of multitenancy is widely mentioned in modern architectures, especially with the growth of cloud computing. Applications supporting multitenancy allow different organizations (or tenants) to...

If I have more than one tenant, how the history configuration will work?  
I tried to do this:

MultiSchemaMultiTenantProcessEngineConfiguration config  
= (MultiSchemaMultiTenantProcessEngineConfiguration)processEngine.getProcessEngineConfiguration();  
config.setEnableHistoryCleaning(true);  
config.setHistoryCleaningTimeCycleConfig(“0 30 \* \* \* ?”);  
config.setCleanInstancesEndedAfterNumberOfDays(Integer.valueOf(1));

But the ACT\_RU\_TIMER\_JOB table is empty after starting the server.  
Not sure where flowable stores the details about the history timer configuration?

Also, the above configuration will be applied for all the tenants?  
Is it possible to have different history cleaning setting for different tables?

Any guidance will be greatly appreciated.
