Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

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

check
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" )'






  • No labels