
1- get the page id ( in a specific space) using "~" include or "=" exact match )
2- delete the page
curl -Method GET 'https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/search?cql=(title ~ "page8" and space=TEST)'
>>> "id":"13172813"
curl -METHOD DELETE https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/13172813
|
|
---|
| |
When successful: StatusDescription : No Content |
PS C:\Users\jkriker> curl -METHOD DELETE https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/13172813
StatusCode : 204
StatusDescription : No Content
Content :
RawContent : HTTP/1.1 204 No Content
Strict-Transport-Security: max-age=315360000; includeSubDomains; preload
ATL-TraceId: 62bdebae9f90ada0
X-XSS-Protection: 1; mode=block
ATL-TCS-Time: 0
X-Content-Type-Optio...
Forms : {}
Headers : {[Strict-Transport-Security, max-age=315360000; includeSubDomains; preload], [ATL-TraceId, 62bdebae9f90ada0], [X-XSS-Protection, 1;
mode=block], [ATL-TCS-Time, 0]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : mshtml.HTMLDocumentClass
RawContentLength : 0
PS C:\Users\jkriker> curl -Method GET 'https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/search?cql=(title = "page8" )'
|