Delete a customer account from an integration sandbox
Learn how to remove a customer account from the Testing in Production integration sandbox. You can use one of the following options:
- C#
- REST API
C#
- Sign in to the sandbox by using your sandbox credentials.
- Use your IParnter.Customer collection and call the ById() method.
- Call the Delete method.
// IPartnerCredentials tipAccountCredentials;
// string customerTenantId;
IPartner tipAccountPartnerOperations = PartnerService.Instance.CreatePartnerOperations(tipAccountCredentials);
tipAccountPartnerOperations.Customers.ById(customerTenantId).Delete();
REST API
Request
Request syntax
Method | Request URI |
---|---|
DELETE | {baseURL}/v1/customers/{customer-tenant-id} HTTP/1.1 |
URI parameter
The following query parameter is required for deleting an integration sandbox account.
Name | Type | Description |
---|---|---|
customer-tenant-id | guid | A GUID-format customer tenant ID that refers to a specific customer. |
Request example
DELETE https://api.partnercenter.microsoft.com/v1/customers/<customer-tenant-id> HTTP/1.1
Accept: application/json
MS-RequestId: 655890ba-4d2b-4d09-a95f-4ea1348686a5
MS-CorrelationId: 1438ea3d-b515-45c7-9ec1-27ee0cc8e6bd
Content-Length: 0
Response
If the request is successful, this method returns an empty response.
Response example
HTTP/1.1 204 No Content
Content-Length: 0
MS-CorrelationId: 1438ea3d-b515-45c7-9ec1-27ee0cc8e6bd
MS-RequestId: 655890ba-4d2b-4d09-a95f-4ea1348686a5
Date: Wed, 16 Mar 2016 00:43:02 GMT
Next steps
- Learn about APIs for Azure CSP integration.
- See the list of Azure CSP integration scenarios.