We’ve migrated our documentation to a new site, which means some URLs have changed.
Audience

/document/delete

The api deletes the document specified in the url from the provided site. The content profile will also be deleted if the provided site matches the site from the last crawling of the url. The content profiles won't be deleted if you use the documentId instead.

The user must be authenticated and have write permissions to the site.

Request

The request object has the following fields:

Name

Type

Required

Description

siteId

String

Yes

The siteId the document belongs to.

url

String

No

The document url.

documentId

String

No

The document id.

Exactly one of url and documentId must be provided.

Response

The response object is an empty json object on success.

Examples

Bash
$ cx.py /document/delete '{"siteId":"9222403073674135887","url":"http//someurl.com"}'
Bash
$ cx.py /document/delete '{"siteId":"9222403073674135887","documentId":"2sfd8f2746sd32sn17as91ks92hnd731s2"}'

Last updated: