• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

How to delete a list item

Some tooltip text!
• 1 minute to read
 • 1 minute to read

To delete a list, use the Lists endpoint. These examples use the Category list for demonstration purposes.

Warning

Do not delete built-in lists.

  • RESTful REST API
  • HTTP RPC Agent API
  • WebApi Proxy API
DELETE https://{{env}}.superoffice.com/{{tenant}}/api/v1/List/108 HTTP/1.1
Authorization: Bearer {{token}}

For user-defined lists, use the list Id in the ListEntityId query string parameter.

POST https://{{env}}.superoffice.com/{{tenant}}/api/v1/Agents/List/DeleteListEntity?ListEntityId=108 HTTP/1.1
Authorization: Bearer {{token}}

Response:

HTTP Status 204

How to delete a list entity using the SuperOffice.WebApi proxy client.

For user-defined lists, use the list Id

var config = new WebApiOptions(tenant.WebApiUrl);
config.Authorization = new AuthorizationAccessToken("8A:Cust12345.Example-Token", OnlineEnvironment.SOD);

var listAgent = new ListAgent(config);
await listAgent.DeleteListEntityAsync(108);

Back

In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top