SP.FileVersionCollection.deleteByLabel Method (sp.js)

Deletes the file version object with the specified version label.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.FileVersionCollection.deleteByLabel()

Parameters

  • versionlabel
    Type: String

    Specifies the version label.

Return value

Undefined

Remarks

The value of versionlabel parameter should be value of the SP.FileVersion.versionLabel Property for an SP.FileVersion object.

REST resource endpoint

See FileVersionCollection resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/versions/deleteByLabel(versionlabel)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/files/getbyurl(filerelativeurl)/versions/deleteByLabel(versionlabel)

Resource parameters

  • versionlabel