{"id":154,"date":"2015-10-06T13:00:31","date_gmt":"2015-10-06T12:00:31","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=154"},"modified":"2015-10-06T13:00:59","modified_gmt":"2015-10-06T12:00:59","slug":"deleting-all-revisions-from-wordpress-wp_posts-table-without-breaking-it-all","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2015\/10\/06\/deleting-all-revisions-from-wordpress-wp_posts-table-without-breaking-it-all\/","title":{"rendered":"Deleting all Revisions from WordPress wp_posts table without breaking it all"},"content":{"rendered":"<p>I wanted to delete all the revisions I had for my posts in wordpress. This is how I did it:<\/p>\n<pre>\r\n\r\nDELETE from wp_posts\r\nWHERE post type = 'revision';\r\n\r\nQuery OK, 94 rows affected (0.00 sec)\r\n<\/pre>\n<p>Yay. Simple thing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to delete all the revisions I had for my posts in wordpress. This is how I did it: DELETE from wp_posts WHERE post type = &#8216;revision&#8217;; Query OK, 94 rows affected (0.00 sec) Yay. Simple thing.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,2,16],"tags":[],"class_list":["post-154","post","type-post","status-publish","format-standard","hentry","category-linux","category-mysql","category-wordpress"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=154"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/154\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}