The DeleteForListView() function defined in the syListViewOptionsObj form is used to delete any existing view information that has been saved for a specific list.
DeleteForListView(list_dict_ID, list_ID, view_ID)
• list_dict_ID – An integer specifying the ID of the product that defines the list.
• list_ID – An integer specifying the unique ID assigned to the list.
• view_ID – An integer specifying the view for which view information is being deleted. Use the constant LIST_PRIMARYVIEWID to indicate the primary view for the list.
An integer indicating whether the view information was deleted. The constant OKAY indicates the information was deleted. Any other value indicates an error occurred.