If you have a page that you can't access (for example, due to an incompatible plugin that won't render a macro), you can delete or edit the page by manually entering the appropriate URL. The URL looks like this: http://<baseurl>/pages/removepage.action?pageId=<pageID>

http://<baseurl>/pages/editpage.action?pageId=<pageID>
http://<baseurl>/pages/editblogpost.action?pageId=<pageID>

Substitute your page ID for the one you wish to delete.

You can access the page for editing using an URL like:

http://<baseurl>/pages/editpage.action?spaceKey=<spaceKey>&title=pageName

To delete an attachment manually, you can use a URL like:

http://<baseurl>/pages/removeattachment.action?pageId=32787&fileName=harbour.jpg&version=1

To view the attachments on a page:

http://<baseurl>/pages/viewpageattachments.action?pageId=<pageId>

Get the page ID similarly.
To get the wiki markup from the database directly, try:

SELECT BODY FROM BODYCONTENT WHERE CONTENTID IN (SELECT CONTENTID FROM content WHERE TITLE ='<insert name of page or blog post>');

NOTE:

The Deleting attachment url and to get the wiki markup from the database you need to scroll to the right to see all of the information