--- title: "View.DeleteItems - Web Scraping API - Mozenda" slug: "viewdeleteitems" description: "Use View.DeleteItems to remove all items in a specified view. Careful - this operation is permanent. " updated: 2026-03-30T13:23:32Z published: 2026-03-30T13:23:32Z canonical: "help.mozenda.com/viewdeleteitems" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # View.DeleteItems #### Description Deletes all the **items** in the **view**. WARNING This operation is permanent! ### URL parameters | Name | Required | Type | Description | | --- | --- | --- | --- | | `ViewID` | True | numeric | Unique identifier of the **view**. | | `CollectionID` | False | numeric | Unique identifier of the **collection**. REQUIRED if the **view** is a shared **view** in an **agent group**. | | `JobID` | False | numeric | Unique identifier of the **job**. | | `ViewParameter.<ParameterName>` | False | string | Used for dynamic **view criteria**. E.g. criterion: Name **Equals** `%NameValue%` can be set with `ViewParameter.NameValue=Michael `. | ### Responses | Name | Type | Description | | --- | --- | --- | | `Result` | string | `Success` if the operation was successful. | | `ItemsDeleted` | numeric | Total number of **items** deleted. | ### Sample request ``` curl -X GET 'https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=View.DeleteItems&ViewID=1009' ``` ### Sample responses #### XML ``` Success 67 ``` #### JSON (add `&ResponseFormat=JSON`) ``` { "ItemsDeleted": 67, "JsonResult": { "Command": "View.DeleteItems", "AutoLoggedIn": false, "WebConsoleKey": "", "Result": "Success", "ErrorCode": "", "ErrorDescription": "", "ErrorList": [], "ExecutionTime": { "Ticks": 0, "Days": 0, "Hours": 0, "Milliseconds": 0, "Minutes": 0, "Seconds": 0, "TotalDays": 0, "TotalHours": 0, "TotalMilliseconds": 0, "TotalMinutes": 0, "TotalSeconds": 0 } } } ```