Skip to content

Instantly share code, notes, and snippets.

@tallesairan
Created February 4, 2020 13:37
Show Gist options
  • Select an option

  • Save tallesairan/29efed3ec7d829bc32d15f17bad46848 to your computer and use it in GitHub Desktop.

Select an option

Save tallesairan/29efed3ec7d829bc32d15f17bad46848 to your computer and use it in GitHub Desktop.
Remove posts and meta by post type
DELETE p,pm
FROM wp_posts p
INNER
JOIN wp_postmeta pm
ON pm.post_id = p.ID
WHERE p.post_type = 'webhook'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment