Delete a List Item
Use the DeleteListItem endpoint to delete a list item from any list in WebEOC Nexus.
| Description | Deletes a list item from a particular list in WebEOC Nexus |
|---|---|
| URL | /lists/[listname]/[listitemname] |
| Method | DELETE |
| Parameters |
|
Review the parameter definitions and examples of how to use the DeleteListItem endpoint in JavaScript and C# calls.
Parameters
| Variable Name | Type | Description | Required |
|---|---|---|---|
| listName | String | Name of the list containing the list item you want deleted | True (URL) |
| listitemname | String | Name of the list item you want deleted | True (URL) |
Examples
JavaScript Call
Copy Code
await fetch(`${baseUrl}/lists/New List/ItemOne`, { method: 'DELETE' })
C# Call
Copy Code
public async Task DeleteListItem()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
await httpClient.DeleteAsync($"{baseUrl}/lists/New List/ItemOne");
}
}
Related Concepts
Related Tasks