1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Delete Attachments?

Discussion in 'XenForo Questions and Support' started by Craigr, Oct 8, 2012.

  1. Craigr

    Craigr Active Member

    I have a lot of attachments on my site, i am trying to clear some of the older ones out.

    Is there any way to delete all a particular user's attachments? One of my users has not visited the site for years and there are over 50 pages of attachments via the attachment browser. It is taking a long time to delete them.

    Also have many more similar attachments from other long gone users.

  2. Brandon Sheley

    Brandon Sheley Well-Known Member

    Why do you want to delete them, won't it mess up any conversations from those attachments in post??
    Insy likes this.
  3. Craigr

    Craigr Active Member

    When i create a backup it is nearly 3Tb, these attachments are from over 5 years ago and am sure no-one even read the threads they were posted in anymore.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Search by name and select all?

    Screen shot 2012-10-08 at 10.40.00 AM.png
    Adam Howard and Craigr like this.
  5. Craigr

    Craigr Active Member

    The select all only selects the 50 displayed. Guess this will be the quickest way for me to delete them.

    Thanks. :)
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You can change it by editing this file:


    Find and change this line:

    		$perPage = 50;
    You may encounter timeouts or other server limits with very large batch sizes. Backup first to be safe.
    Adam Howard and Craigr like this.
  7. Craigr

    Craigr Active Member

    Awesome, thanks will just change it to 100 so shouldn't be too bad. :)

Share This Page