The DeleteForListView() function defined in the syListViewColObj form deletes the column definition information for the specific list view.
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 column definition information is being deleted. Use the constant LIST_PRIMARYVIEWID to indicate the primary view for the list.
An integer indicating whether the column definitions were deleted. The constant OKAY indicates they were deleted. Any other value indicates an error occurred.