FedEx Corp confirmed on Wednesday it would terminate its contract with Amazon.com Inc for small-package ground deliveries, as the online retailer focuses on building out its own delivery network.