Disable deleting attachment content form ALFRESCO repository

We are using Alfresco as an external content storage system (CMIS Connector), and we have a requirement to avoid deleting the attachment content from the repository. Instead, we only want to delete the related Pega records (Data-WorkAttach and Link-Attachment).
Is there any OOTB configuration we can use to achieve this?

there is no ootb setting in Pega CMIS integration to delete only the Pega attachment records while keeping the file in Alfresco. The clear solution is to customize the attachment delete process so it removes only the Data-WorkAttach and Link-Attachment records and skips the CMIS content delete call. In your custom delete activity, do not invoke the step that sends the delete request to Alfresco. This way, the attachment reference is removed from Pega, but the actual document stays in the Alfresco repository. After the change, test the delete action once to confirm that only the Pega records are removed and the file still exists in Alfresco.