SQL查询删除wordpress中的所有媒体和附件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SQL查询删除wordpress中的所有媒体和附件相关的知识,希望对你有一定的参考价值。
Run these queries (phpMyAdmin will do) to delete all media in the library, and remove all post attachment affiliation
# FIRST: DELETE FROM wp_postmeta WHERE post_id IN ( SELECT id FROM wp_posts WHERE post_type = 'attachment' ) ; # SECOND: DELETE FROM wp_posts WHERE post_type = 'attachment'
以上是关于SQL查询删除wordpress中的所有媒体和附件的主要内容,如果未能解决你的问题,请参考以下文章