Share via


DeleteView Method

The DeleteView method of the Views service deletes the specified view of the specified list.

Parameters

listName   A string that contains the internal name of the list.

viewName   A string that contains the GUID for the view.

Return Value

Returns a System.Web.Services.Protocols.SoapException exception if an error occurs; otherwise, returns an empty value, as shown in the following example:

<DeleteViewResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/" />

Example

The following code example deletes a specified view.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/[sites/][Site_Name/]_vti_bin/Views.asmx