Delete a List Item

Use the DeleteListItem endpoint to delete a list item from any list in WebEOC Nexus.

DeleteListItem endpoint description
Description Deletes a list item from a particular list in WebEOC Nexus
URL /lists/[listname]/[listitemname]
Method DELETE
Parameters
  • listName

  • listItemName

Review the parameter definitions and examples of how to use the DeleteListItem endpoint in JavaScript and C# calls.

Parameters

DeleteListItem endpoint 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");
}
}