Results 1 to 5 of 5

Thread: Delete data under .sqmaildata directory

  1. #1
    Join Date
    Mar 2010
    Posts
    61

    Delete data under .sqmaildata directory

    8.0K ./cpmove.psql.1222948354
    2.7M ./public_html
    16M ./mail
    8.0K ./public_ftp
    4.0K ./.htpasswds
    52K ./etc
    5.0M ./.sqmaildata
    960K ./tmp
    200K ./.cpanel
    8.0K ./.cpaddons
    8.0K ./cpmove.psql
    25M .
    Guys ! I have no any idea to delete the components within the particular, can you tell me how to delete entire data which are stored within the .sqmaildata but the directory should not be deleted.. Do you all have any idea regading this ...???

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Delete data under .sqmaildata directory

    Have you issues any commands from the Linux that are capable to do it, you can use the directory operated commands from the Linux and they would easily delete the data inside the directory and it is very simple to use :

    rm -rf .sqmaildata
    This one command would select all the files from the .sqlmaildata and then remove all that .

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Delete data under .sqmaildata directory

    Very well suggested and I also think , it would be the good solution to delete the data from that located directory but you need to locate the path of the file and directory. If you just need to delete the data from that directory (.sqmaildata) but not the directory itself, then just type :

    rm -rf .sqmaildata/*

    One thing more, I will suggest you that just be careful with the rm command, it can be very dangerous to use. So use this command with the proper option otherwise, you lost some needed components form the directory ...can I know the reson why , you wanted to delete the data inside this directory . It stores the spamassassin information and associated rules and consumes only 16 MB of space..
    Last edited by Katty; 14-06-2010 at 12:28 PM.

  4. #4
    Join Date
    Mar 2010
    Posts
    61

    Re: Delete data under .sqmaildata directory

    Thanks to you all for these kind replies. Katty, I wanted to delete all this because that account is consuming disk space 57 out of 50 allocated and then after I investigate about the disk used and come to be aware that .sqmaildata and .spamassasin directories are taking so much space of the disk in MB. That is why, I decided to remove for the same.


    Code:
    28M     ./mail
    11M     ./.sqmaildata
    1.9M    ./tmp
    16M     ./.spamassassin
    I am not getting your points , what is .sqmaildata and why it is taking 11 MB disk space ?

  5. #5
    Dr. V Guest

    Re: Delete data under .sqmaildata directory

    Actually, the .sqmaildata directory may have mails which are marked as spam and these maybe lqarge in size. You can provide the below suggested command to find them and remove them.

    Code:
    du -sch  /home/username/.sqmaildata/*
    .spamassassin has the files associated with the domain specific spamassassin settings. You can check the size of each one files within this folder as follows.

    Code:
    du -sch /home/username/.spamassassin/*

Similar Threads

  1. Cannot Delete xxx xxx: The Directory Is Not Empty Windows XP
    By Gavinovo in forum Networking & Security
    Replies: 3
    Last Post: 19-10-2010, 10:22 PM
  2. Batch script to delete directory
    By Logan 2 in forum Software Development
    Replies: 4
    Last Post: 01-04-2010, 12:31 PM
  3. Delete the contents of a directory using Batch
    By GUSSIE in forum Operating Systems
    Replies: 3
    Last Post: 11-09-2009, 12:43 PM
  4. How can I delete a directory using SSH
    By Mindstorm in forum Operating Systems
    Replies: 2
    Last Post: 15-05-2009, 02:38 PM
  5. Delete directory name that contains special characters
    By Nadhe in forum Windows XP Support
    Replies: 2
    Last Post: 04-02-2008, 12:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,877,195.46939 seconds with 16 queries