**Source URL:** https://safety.veevavault.help/en/lr/1112424/index.md

# Enable Safety Deletion Logs

With the 26R2 release, Safety allows you to mandate a formal, auditable justification whenever documents are deleted from Vault. Users can <a href="/en/lr/1112429/">mark documents for deletion</a>, prompting Vault to create a _Safety Deletion Log_ record with context on the document and the user's deletion request. After a 30 day<sup>1</sup> retention period, Vault permanently deletes the document, retaining the document and deletion metadata in the _Safety Deletion Log_ for compliance retention.

<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: 1. Contact your Veeva Representative to change this limit.</p>
    </div>
  </div>
</div>



## Overview

To enable this feature in your Vault:

* <a href="/en/lr/4884/#use-shared-field">Assign</a> the _Marked for Deletion_ shared field to the relevant document types, subtypes, and classifications, as required by your business processes
* [Configure document deletion][1]
* [Update the _Safety Deletion Log_ object layout][2]
* [Configure the _Cancel Document Deletion Request_ action on the _Safety Deletion Log_][3]
* Activate the <a href="/en/lr/844598/">_Safety Daily Maintenance Job_</a>

## Configure Document Deletion {#document-deletion}

As required by your business processes, configure the following for the relevant states on the relevant document lifecycles:

* <a href="/en/lr/12339/#create">Add</a> the _Delete Document with Reason_ user action as follows:
    * **Condition Type**: Select **Always**
    * **Allow the following actions**:
        * Select **Delete Document with Reason**
        * **Action Label**: Enter `Delete Document with Reason`
* <a href="/en/lr/2572/#edit">Edit security settings</a> to remove **Delete** permissions for all roles

## Update the Safety Deletion Log Object Layout {#update-layout}

To update the _Safety Deletion Log_ object layout:

1. <a href="/en/lr/26387/#save-as-layout">Copy the standard layout</a> and ensure the new layout is active.
2. <a href="/en/lr/26387/#set-a-default-layout">Set the copied layout as the default</a>.
3. <a href="/en/lr/26387/#delete-a-layout">Delete</a> any other existing custom layouts.

## Configure the Cancel Document Deletion Request Action {#action}

To configure the _Cancel Document Deletion Request_ action on the _Safety Deletion Log_:

1. <a href="/en/lr/43127/#assign-actions">Assign</a> the _Cancel Document Deletion Request_ user action to the _Safety Deletion Log_ object and clear the **Available in All Lifecycle States** checkbox.
2. <a href="/en/lr/59885/#define-actions">Add a user action</a> to the _Pending Deletion_ state of the _Safety Deletion Logs Lifecycle_ as follows:
    * **Condition Type**: Select **Always**
    * **Allow the following actions**:
        * Select **Cancel Deletion Request**
        * **Action Label**: Enter `Cancel Deletion Request`

[1]: #document-deletion
[2]: #update-layout
[3]: #action