Apex
...
Types
Input & Output Types
Types.DeleteResourcesInput
Represents input for deleting the resources using Delete Resource function.

- resourceIds - The unique ID of the resource (file or folder) to be deleted
- resourceType - Valid Values: file or folder
- driveId - Required for Google Drive and SharePoint. Retrieve this from the Content Library tab in Salesforce using the "View Metadata" button.