Im writing a python script that will synchronize git remote repository with pages in dokuwiki, until now, i was just "rm /page/folder/page.txt" and it kind of worked, now i want to make sure that i delete "everything that is connected with this page" how should i do it?