Bitcoin Forum
May 06, 2024, 05:40:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Any way to purge the log.000xxxx files in the database folder?  (Read 1214 times)
localhost (OP)
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
August 28, 2011, 10:23:51 AM
 #1

Hi,

I recently noticed that the log files contained in the database (%appdata%/Bitcoin/database) folder don't seem to get purged properly. The only things I found about this is https://en.bitcoin.it/wiki/Data_directory#Subdirectories and https://bitcointalk.org/index.php?topic=20298.0 . The strange thing is that I'm regularly switching between 2 wallets, every time switching the whole content of %appdata%/Bitcoin, and both don't have the same amount of files in %appdata%/Bitcoin/database. Is there any way to purge that folder? I mean, apart from wiping everything but the wallet? Not that that database folder is huge (yet), but I'm worrying about it growing indefinitely...

Thanks

-
1714974017
Hero Member
*
Offline Offline

Posts: 1714974017

View Profile Personal Message (Offline)

Ignore
1714974017
Reply with quote  #2

1714974017
Report to moderator
1714974017
Hero Member
*
Offline Offline

Posts: 1714974017

View Profile Personal Message (Offline)

Ignore
1714974017
Reply with quote  #2

1714974017
Report to moderator
1714974017
Hero Member
*
Offline Offline

Posts: 1714974017

View Profile Personal Message (Offline)

Ignore
1714974017
Reply with quote  #2

1714974017
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714974017
Hero Member
*
Offline Offline

Posts: 1714974017

View Profile Personal Message (Offline)

Ignore
1714974017
Reply with quote  #2

1714974017
Report to moderator
Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
August 29, 2011, 04:38:11 AM
 #2

Restarting your client from time to time will trim the size down. It's only an issue if you leave your client online for weeks.

localhost (OP)
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
August 29, 2011, 05:58:42 AM
 #3

Well, yeah, restarting the client removes a few files, but some (for a total of around 80 MB) are staying. The most weird thing is that the bitcoin client doesn't even seem to use them anymore (their last modification dates range from 1 month to a few days).

-
helloworld
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
August 29, 2011, 07:15:32 AM
 #4

Simply deleting them is fine, just make sure you exit the client first.
localhost (OP)
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
August 29, 2011, 07:28:12 AM
 #5

Simply deleting them is fine, just make sure you exit the client first.
Last time I did that (on my empty wallet) the bitcoin client kept crashing when I relaunched it (ran for a few minutes then crash), and I eventually had to wipe out the whole blockchain and start over. Are you really sure I can delete all those files, or do you mean the old ones that haven't been modified for at least a week?

-
helloworld
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250



View Profile
August 29, 2011, 07:34:14 AM
 #6

Simply deleting them is fine, just make sure you exit the client first.
Last time I did that (on my empty wallet) the bitcoin client kept crashing when I relaunched it (ran for a few minutes then crash), and I eventually had to wipe out the whole blockchain and start over. Are you really sure I can delete all those files, or do you mean the old ones that haven't been modified for at least a week?

Someone else would have to confirm the technicalities, but I've never had any crash problems deleting log files, or any files other than the blockchain+wallet in fact.
localhost (OP)
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
August 29, 2011, 10:00:52 AM
 #7

Ok, well I went ahead and deleted all those log files except for the last one, and everything seems fine after running the client for like an hour.

-
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!