• Resolved diragusa

    (@diragusa)


    When I delete one subdirectory on my multisite, and start a new one with the same name i get many little problems running amuck. Is there a way to permanently go into the database and rid of that one subdirectory completely. the subdirectory numbers in my database now go out of sequence i would prefer it start where it ended after getting out of sequence.

    tough question i know

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    When you delete a site within your blog, WordPress automatically deletes all the database tables for that site (i.e. if you delete blog ID 3, then the tables wp_3_* are all removed).

    You cannot reuse that blog ID, however. So if you’re using that for something, you’ll be goobered.

    Thread Starter diragusa

    (@diragusa)

    I see that the blog.dir of those sites are still there could i delete them?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Yes. That’s safe to delete if the site itself is deleted 🙂

    Thread Starter diragusa

    (@diragusa)

    will see if that fixes the problem. the blog i deleted in the first place was at the end of the blog id list, then when i made a new site it skip a number. not cool.

    thanks though

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That’s what it’s supposed to do. You don’t EVER reuse blog ID numbers. They must be unique, never repeating.

    Thread Starter diragusa

    (@diragusa)

    hmm gotcha, thanks

    Thread Starter diragusa

    (@diragusa)

    but i guess its not a matter of the blog id. its more of the what the subdriectory is called, i cant seem to get rid of old little files in this subdirectory, to start fresh at atleast in the new subdirectory.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I don’t understand what you mean… You can’t delete the old, unused, blogs.dir/#/ folder?

    Thread Starter diragusa

    (@diragusa)

    no but delete any essence of the other subdirectories i deleted in:
    wp_blogs,
    wp_blog_versions,
    wp_registration_log,
    wp_signups,
    wp_site,
    wp_sitemeta,
    wp_sitecategories

    hmmm …

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You don’t, shouldn’t, need to delete anything out of those tables.

    They’re supposed to clean up when you delete the blog from Network Admin. You ARE actually deleting the blog, right? Get the ‘are you sure?’ screen and everything?

    Thread Starter diragusa

    (@diragusa)

    ya fixed the issue. thanks so much

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Deleting Subdirectory Completly in Database’ is closed to new replies.