SP.ViewFieldCollection.removeAll Method (sp.js)
Removes all the fields from the collection.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
SP.ViewFieldCollection.removeAll()
Return value
Undefined
REST resource endpoint
See ViewFieldCollection resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/lists(listid)/Views(viewid)/ViewFields/removeAllViewFields()
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/lists(listid)/Views(viewid)/ViewFields/removeAll()