How to setup to delete the attachments once file has been exported to Provider from Salesforce

How to setup to delete the attachments once file has been exported to Provider from Salesforce

If we enable attachment delete'  under custom settings , then once files exported from salesforce to provider then attachments will be dleted automatically from notes and attachments session.