Forums

[resolved] Deleting Subdirectory Completly in Database (12 posts)

  1. diragusa
    Member
    Posted 5 months ago #

    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

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    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.

  3. diragusa
    Member
    Posted 5 months ago #

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

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    Yes. That's safe to delete if the site itself is deleted :)

  5. diragusa
    Member
    Posted 5 months ago #

    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

  6. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

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

  7. diragusa
    Member
    Posted 5 months ago #

    hmm gotcha, thanks

  8. diragusa
    Member
    Posted 5 months ago #

    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.

  9. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

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

  10. diragusa
    Member
    Posted 5 months ago #

    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 ...

  11. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 5 months ago #

    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?

  12. diragusa
    Member
    Posted 5 months ago #

    ya fixed the issue. thanks so much

Reply

You must log in to post.

About this Topic