You need to configure the Documents tab in Lightning to view the documents. You can enable or disable the Delete button on the Documents tab for selected user profiles to prevent the deletion of documents.

Prerequisites

You must configure the registration setting to allow users to configure columns on the Documents tab. For more information, see Generating Registration Setting.

To configure the Documents tab

  1. Navigate to the Agreement Detail page.
  2. Click the Setup icon and select the Edit Object option.
    This displays the Agreement Object page.

    If you want to permit users to use Online Contract Collaboration only for certain record types, you need to perform the following tasks:

    1. Navigate to an agreement that contains the desired record type.
    2. Click the Setup icon and select the Edit Page option.
    3. Follow the steps mentioned below from 3 to 13. 
  3. Click Lightning Record PagesAgreement Record Page.
    This displays the Lightning Page Detail page.
  4. Click Edit.
    This displays the Agreement Record page.
  5. In the layout, click the Details tab.
    This displays a tabs component in the right panel.
  6. Click the Add Tab button.
    This adds another Details tab in the layout.
  7.  In the tabs component, select the newly added Details tab.
     
  8. From the Tab Label, select Custom.
    This displays the Custom Label text field.
  9. In the Custom Label field, enter Documents.
  10. In the layout click the Documents tab.
  11. In the left panel, search for Agreement Documents.
  12. Drag Agreement Documents from the left panel and drop in the Add Component(s) here section.
    This displays all the documents available in the agreement.
  13. Click Save.
    If you are configuring the page layout for the first time in your org, then you need to activate the page.

To disable the Delete button on the Documents tab

  1. Go to Setup > Users > Profiles.
  2. Select a user profile.
  3. Click Object Settings and then click Document Version.
  4. Under the Object Permissions section, unselect the Delete checkbox.
    All the users assigned to the selected user profile cannot see the Delete button on the Documents tab.