<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def delete_service(self, name):
 """ Delete a service by name. @param name: Service name @return: The deleted ApiService object """

    return services.delete_service(self._get_resource_root(), name, self.name)