diff options
| author | Johannes Garm Nielsen <jgn@nordu.net> | 2018-11-02 14:51:26 +0100 |
|---|---|---|
| committer | Johannes Garm Nielsen <jgn@nordu.net> | 2018-11-02 14:51:26 +0100 |
| commit | 0fd73c56adbeb4a040de1ff2dad1b36e50c41425 (patch) | |
| tree | 70bfd58af8f3ce91ac8d85d434fe23d2660ba7f1 /wipeDocs.py | |
initial commit
Diffstat (limited to 'wipeDocs.py')
| -rw-r--r-- | wipeDocs.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/wipeDocs.py b/wipeDocs.py new file mode 100644 index 0000000..390f167 --- /dev/null +++ b/wipeDocs.py @@ -0,0 +1,21 @@ +import pprint, json +from atlassian import Confluence +from base64 import b64encode + +pp = pprint.PrettyPrinter(indent=2) + +confluence = Confluence( + url='http://localhost:8090', + username='apiuser', + password='apiuserpass') + +spaceName = sys.argv[1] + +pages = confluence.get_all_pages_from_space(spaceName) + +# jsonPages = json.loads(pages) + +for page in pages: + print(pp.pprint(page)) + resp = confluence.remove_page(page['id']) + print(pp.pprint(resp))
\ No newline at end of file |
