Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:14:23+00:00 2026-05-28T16:14:23+00:00

If I drop an innodb table when will the disk space be reclaimed? Does

  • 0

If I drop an innodb table when will the disk space be reclaimed?
Does it happen immediately?

How about with records instead of the entire table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:14:24+00:00Added an answer on May 28, 2026 at 4:14 pm

    It depends on whether you enabled the innodb_file_per_table server setting or not.

    If innodb_file_per_table is enabled, then each table stores its data in a separate .ibd file. Otherwise the data for all tables is stored in a shared .ibd file.

    With innodb_file_per_table:

    • When you drop a table the .ibd file is deleted and the disk space is immediately freed.
    • When you delete records it frees up space inside the .ibd file, but does not shrink it. Rebuilding the table (such as by running OPTIMIZE TABLE) will free up the disk space.

    Without innodb_file_per_table:

    • Dropping a table or deleting rows from a table frees up space in the shared .ibd file to be used to store future data, but the shared .ibd file will never shrink
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I cannot delete/drop a crashed Innodb table. I get the following error: ERROR 1051
I'm using the latest EclipseLink version with MySQL 5.5 (table type InnoDB). I'm inserting
I have a log table that gets processed every night. Processing will be done
I am simply trying to convert a table from MyISAM to INNODB. This is
DROP TABLE District_Info; CREATE TABLE District_Info( Dname VARCHAR2(20) primary key, Boundary_dist VARCHAR2(20) ); for
How do I drop Sqlce table from within VB Express 2008? Any help appreciated...
Here is my create table and this is the error I am getting DROP
DROP TABLE IF EXISTS `items_stock`; CREATE TABLE IF NOT EXISTS `items_stock` ( `ItemStockID` int(10)
DROP TABLE IF EXISTS `media_publications`; CREATE TABLE `media_publications` ( `id` int(11) NOT NULL AUTO_INCREMENT,
This DROP TABLE IF EXISTS works, too bad that RENAME TABLE IF EXISTS doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.