---
sourceDocument: Australia Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/employee-service-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Configure cleanup of pending AI action suggestions

# Configure retention period and cleanup of pending AI action suggestions {#ariaid-title1}

Release version: Australia  
Updated June 2, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Configure how long the pending AI-generated action suggestions are retained before they are automatically deleted.

## Before you begin

Verify the following conditions:

* The ServiceNow Otto for Health and Safety application (sn_hs_gen_ai) is installed. For more information, see [Install ServiceNow Otto for Health and Safety](https://servicenow-prod.fluidtopics.net/ayL8S2McfjywHq~477RZGw "If you have the admin role, you can install the ServiceNow Otto for Health and Safety application (sn_hs_gen_ai) to enable generative AI capabilities for summarizing safety incidents on your instance.").
* The application scope is selected as Health and Safety Core. For more information, see [Application picker](https://www.servicenow.com/docs/access?context=c_ApplicationPicker&version=australia&pubname=australia-application-development&ft:locale=en-US).

{#hs-configure-deletion-pending-ai-action-suggestions__ul_ohl_1wp_ljc}

Role required: sn_ohs_im.admin

## About this task

When the Action Planner generates AI suggestions, they are stored in the AI action suggestion \[sn_ohs_im_ai_action_suggestion\] staging table. Users accept the suggestions to create actions or dismiss them. Suggestions that
are never acted on (that is, not accepted for action creation or dismissed) accumulate over time and remain in the Pending state. A scheduled cleanup job deletes these pending suggestions after the configured number of days,
helping to keep the staging table manageable.

For information on using Action planner for AI suggested actions, see [Generate and manage AI‑suggested safety actions in Action planner](https://servicenow-prod.fluidtopics.net/MDzFaN4b9iDyYRlFot849w "Generate AI-suggested safety actions in Action planner to quickly identify and create corrective measures for Health and Safety records.").

## Procedure

1. Navigate to AllHealth and SafetyHealth and Safety administrationProperties.
2. To enable or disable cleanup, set the Enables or disables the scheduled job that cleans up stale pending AI action suggestions \[sn_ohs_im.ai_suggestion.cleanup_enabled\] property.
   * Yes: The scheduled cleanup job runs daily and deletes pending suggestions that have exceeded the retention period. This is set by default.
   * No: The scheduled cleanup job does not run. Pending suggestions are retained indefinitely.
   {#hs-configure-deletion-pending-ai-action-suggestions__choices_bql_1yp_ljc}
3. To configure the retention period, enter a value in the Number of days to retain pending AI action suggestions before the scheduled cleanup job permanently deletes them as stale \[sn_ohs_im.ai_suggestion.retention_days\] property.  
   By default, this value is set to 90.
4. Verify the scheduled cleanup job.
   1. Navigate to AllScheduled Jobs.
   2. Open the Cleanup stale AI action suggestions scheduled job and review the settings.  
      Note:  
      To run the scheduled job on demand, select Execute Now.

## Result

* The scheduled job runs daily at the specified time. On each run, it queries the AI action suggestion \[sn_ohs_im_ai_action_suggestion\] staging table for suggestions with `status = Pending` that are older than the configured retention period and deletes them.
* Suggestions with `status = Accepted` or `status = Rejected` aren't deleted by the scheduled job, regardless of age.
{#hs-configure-deletion-pending-ai-action-suggestions__ul_qx1_tzp_ljc}

*[\>]: and then


