Click or drag to resize

RedirectServicesDeleteRedirects Method


Deletes a collection of Redirect entries

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<RedirectListing> DeleteRedirects(
	string[] data
)

Parameters

data
Type: SystemString
Array of Redirect entry Ids

Return Value

Type: XHRServiceResponseGenericRedirectListing

Listing of all Redirect entries

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "Redirects": [{
            "ID": "redirects\/1",
            "Name": "redirects\/1",
            "From": "\/support\/contactus",
            "SelectedTgtIDs": "PublishingTargets\/1",
            "Notes": "Requested by Jane Doe. Delete after June 1, 2014",
            "SelectedTgtNames": "Live",
            "To": "http:\/\/www.ingeniux.com\/contactus"
        }, {
            "ID": "redirects\/2",
            "Name": "redirects\/2",
            "From": "\/support\/contactus",
            "Notes": "",
            "SelectedTgtIDs": "PublishingTargets\/33",
            "SelectedTgtNames": "Staging",
            "To": "http:\/\/test.ingeniux.com\/contactus"
        }]
    }
}
Remarks

Non-existing Redirect entries will be ignored

See Also