delete https://{hostname}/services/payroll/v1/import-pay-items/earnings/
This operation deletes a previously imported earning that has not been processed in payroll. Once an earning is processed in payroll, it cannot be deleted.
Your UKG Pro service account must have the Delete role for the Payroll Integration Web Service.