/
5- Delete a page

5- Delete a page

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






Related content

Troubleshooting
Troubleshooting
More like this
3- Page Create or Update content to a page or Delete
3- Page Create or Update content to a page or Delete
More like this
curl on Powershell
curl on Powershell
More like this
12- create an child
12- create an child
More like this
4- get page full content: view and storage ( html or attachment )
4- get page full content: view and storage ( html or attachment )
More like this
POST with python request module
POST with python request module
More like this