Deleting files is slow

System:
- Dell quad core XPS 710, 4GB RAM
- 5x500MB HD
- Vista
- Nvidia 7900 GS and Nvidia 8600 GTS (I have updated the nvidia drivers and the vista hot patches)
- My Lr database, with 62,000 images, is on its own 500MB HD, with Vista file indexing turned off.
- The HD containing the actual images has Vista file indexing turned on.
- McAfee security center is running
Problem:
Deleting files (delete from disk) can be very slow. The first time I delete files it can take several minutes. Subsequent deletions can take from 2-20 seconds.
I have no other Lr performance issues at present (that I am aware of).
Does anyone have any tips to improve file deletion performance?
TIA
Rory

Thanks John
I was already doing a multi-select. After the first delete, which takes several minutes, no matter how many images are selected, subsequent deletes take about 1 second per image, so if I select 200 images it takes about 200 seconds.
As a work around I have been deleting the images in the windows explorer, which is always less than one second, and then synchronizing in Lr, which is fairly quick.
But I am weary of work arounds, and was hoping for a tip on some possible conflict in my system with Lr. Is this a known issue with Lr?
Rory

Similar Messages

  • Random Slowing and deleting files..

    Hello,
    i have some problems with my Xserve. First when we try to delete files on the Xserve from a network G5, the deleting is direct (no move to trash) and very very slow, making all the xserve going slow...
    Sometimes (randomly) all the server go very slow .. i have verified. Network is ok and i have just retrospect running. Copying a file can go as long as 2 hours for 100 megs and all is very slow.
    any idea ?

    Thierry Arnould-
    How full are your storage devices?
    It sounds as though your disk access could be slowing down.
    Luck-
    -DaddyPaycheck

  • Trash is slow deleting files

    Hi, My trash is deleting files but its really slow. Maybe around 1 file a minute. Something is obviously wrong. Any ideas?
    Cheers
    It's a 17inch mac book pro

    It sounds like you have secure empty trash selected.
    Solution:
    open Finder Preferences>advanced>and make sure "empty trash securely" is unchecked.

  • In addition to deleting files, what can I do to speed up my MacBook?

    Hello!
    My MacBook Pro (mid-2010 w/ 16gb of memory and 250gb hard drive) has been running really slow. I know I need to delete a ton of files as my internal disk is near full. My questions are:
    My system report says the majority of disk space is being taken up by "Other". What can I delete to whittle that down?
    How can I use this EtreCheck report to improve my MacBook's performance?
    EntreCheck Report:
    Problem description:
    Mac is running slow.
    EtreCheck version: 2.1.8 (121)
    Report generated February 10, 2015 at 4:43:18 PM PST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro7,1
        1 2.4 GHz Intel Core 2 Duo CPU: 2-core
        16 GB RAM Upgradeable
            BANK 0/DIMM0
                8 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                8 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 832
    Video Information: ℹ️
        NVIDIA GeForce 320M - VRAM: 256 MB
            Color LCD 1280 x 800
            2050W 1360 x 768 @ 60 Hz
    System Software: ℹ️
        OS X 10.9.5 (13F34) - Time since boot: 9 days 19:34:17
    Disk Information: ℹ️
        Hitachi HTS545025B9SA02 disk0 : (250.06 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 249.20 GB (24.95 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        MATSHITADVD-R   UJ-898
    USB Information: ℹ️
        Western Digital My Passport 07B8 2 TB
            EFI (disk3s1) <not mounted> : 210 MB
            My Passport for Mac (disk3s2) /Volumes/My Passport for Mac : 2.00 TB (1.57 TB free)
        Apple Internal Memory Card Reader
        Apple Inc. Built-in iSight
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
        Apple Inc. Apple Internal Keyboard / Trackpad
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/AirParrot.app
        [not loaded]    com.squirrels.airparrot.framebuffer (3 - SDK 10.8) [Click for support]
        [not loaded]    com.squirrels.driver.AirParrotSpeakers (1.8 - SDK 10.8) [Click for support]
    Problem System Launch Daemons: ℹ️
        [failed]    com.apple.wdhelper.plist
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.divx.dms.agent.plist [Click for support]
        [loaded]    com.divx.update.agent.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [not loaded]    com.gopro.stereomodestatus.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
        [loaded]    com.BlueStacks.AppPlayer.LogRotator.plist [Click for support]
        [loaded]    com.BlueStacks.AppPlayer.Service.plist [Click for support]
        [loaded]    com.BlueStacks.AppPlayer.UninstallAgent.plist [Click for support]
        [loaded]    com.BlueStacks.AppPlayer.UpdaterAgent.plist [Click for support]
        [loaded]    com.citrixonline.GoToMeeting.G2MUpdate.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [not loaded]    jp.co.canon.Inkjet_Extended_Survey_Agent.plist [Click for support]
    User Login Items: ℹ️
        uHD-Agent    Application  (/Applications/BlueStacks.app/Contents/Runtime/uHD-Agent.app)
        uTorrent    UNKNOWN  (missing value)
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
        Google Drive    Application  (/Applications/Google Drive.app)
        LivedriveCore    UNKNOWN  (missing value)
        Google Chrome    Application Hidden (/Applications/Google Chrome.app)
        WDDriveUtilityHelper    UNKNOWN  (missing value)
        EvernoteHelper    Application  (/Applications/Evernote.app/Contents/Library/LoginItems/EvernoteHelper.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        Default Browser: Version: 537 - SDK 10.9
        Silverlight: Version: 5.1.20513.0 - SDK 10.6 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivX Web Player: Version: 3.2.0.788 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        SharePointBrowserPlugin: Version: 14.3.6 - SDK 10.6 [Click for support]
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    User internet Plug-ins: ℹ️
        BlueStacks Install Detector: Version: 0.3.6 - SDK 10.7 [Click for support]
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
        Picasa: Version: 1.0 - SDK 10.4 [Click for support]
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        GoPro  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 249.20 GB Disk used: 224.25 GB
        Destinations:
            My Passport for Mac [Local]
            Total size: 2.00 TB
            Total number of backups: 19
            Oldest backup: 2015-01-08 04:49:13 +0000
            Last backup: 2015-02-07 00:31:05 +0000
            Size of backup disk: Excellent
                Backup size 2.00 TB > (Disk size 249.20 GB X 3)
    Top Processes by CPU: ℹ️
            13%    Finder
             9%    WindowServer
             3%    Google Chrome
             2%    coreaudiod
             2%    opendirectoryd
    Top Processes by Memory: ℹ️
        464 MB    Google Chrome
        241 MB    Adobe Photoshop Lightroom 5
        210 MB    Google Chrome Helper
        137 MB    softwareupdated
        137 MB    Evernote
    Virtual Memory Information: ℹ️
        336 MB    Free RAM
        5.96 GB    Active RAM
        5.62 GB    Inactive RAM
        2.50 GB    Wired RAM
        42.78 GB    Page-ins
        567 MB    Page-outs
    Thank you!

    "etrecheck" is of no use for solving this problem.
    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside a photo or iTunes library will corrupt the library. Changes to such a library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install the app in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C.
    For ODS:
    security execute-with-privileges /A*/OmniDiskSweeper.app/*/M*/* 2>&-
    For GP:
    security execute-with-privileges /A*/GrandPerspective.app/*/M*/* 2>&-
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password.
    The application window will open behind other open windows. When you scan a volume, the window will eventually show all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • I need help with Tiger 10.4.11 saving / deleting files on a Win 2003 Server

    Some of my Mac users are experiencing extremely slow file saves to my Windows Server 2003 server. It is not specific to file types. Illustrator, Quark all take forever and the file size is not the issue either. They are also having to force quit Finder after attempting to delete files from the Server.
    I have found that if they boot into Safe Boot they can delete the files without a problem. As soon as I do a normal login the problem returns.
    The problem seems to be specific to the machine. If user A logs on to her Mac she has problems deleting files from the server. If she logs into a Mac that isn't having problems (using her login) she doesn't have problems. If User B who has no problems on her Mac logs into User A's Mac then User B will have the same problems.
    In order to rebind the Mac to the Active Directory I had to remove the Mac from AD. So I don't think it's the Computer's SID. I even tried unbinding the Mac, changing it's name and then Binding it to AD. Same problems.
    I thought it was the Mac and just wasted a day wiping the Mac and reinstalling everything on it, but when I went to delete a file from the Server, finder locked up and I had to force quit finder.
    I even changed the IP Address of one of the Macs having problems, but that didn't work either.
    I've done a Permission repair as well with no change.
    Anyone help?

    OK, there was a System Events in the System Preferences>Accounts>Login Items, but after removing it and restarting I still had to force quit finder after attempting to delete some files off of the server.
    I do not have (or can't find) the /private/var/run/startupitems.
    The Library/StartupItems has 2 entries: AdobeVersionQueCS2 and IntegoCommon, both of which I removed the other day and tried to delete files after rebooting with the usual (not good) result.
    In the System/Library/StartupItems there are 16 items. I will list them as I am not sure what shouldn't be there. I believe that they should all be from Apple though:
    Apache
    AppleShare
    AuthServer
    CrashReporter
    Disks
    FibreChannel
    IFCStart
    IPServices
    Metadata
    NetworkTime
    NFS
    NIS
    PrintingServices
    RemoteDesktopAgent
    SNMP
    Thanks for your help so far.

  • How to open files with "return" key and delete files with "delete" key?

    Hi friends,
    It's been over a week since I got my iMac and I'm loving it. However, while I'm adapting alright to 'mac' key shortcuts (e.g. using the COMMAND-S for save as opposed to CONTROL-S used in PC).
    However, there are 2 things that are annoying me greatly right now.
    1. I like selecting files with keys as opposed to using the mouse. I make animations and prefer keyboard shortcuts. However, when I hit "return", instead of opening the file it goes into file-renaming mode. How do I change this? Likewise, I would like to delete files by hitting the delete key. This does not work - how do I change this?
    2. When I click SHIFT key sometimes, it gets 'stuck' - which is annoying because I start typing CAPITALS when I wasn't aware I've activated the CAP-LOCK key. How do I get rid of this? Like, I don't want to hit SHIFT for instance, and have that up arrow thing 'stuck' there.
    Your help would be greatly appreciated! Thanks!
    iMac G5   Mac OS X (10.4.9)  

    Hi
    Thanks for the star.
    If you went into Mac Help & searched, 2 results come up:
    Full keyboard access shortcuts for interacting with items (for selecting & activating controls).
    Full keyboard navigation keyboard shortcuts (for navigating Desktop, Windows, Menu bar etc)
    From the lists, select the link that closely describes your situation.
    I have to say that I can't reproduce your problem, does this happen just in applications or in everything? I don't know if it's to do with this but pressing Shift 5 times turns on Sticky Keys & Option(Alt) 5 times to turn on Mouse Keys (System Preferences>Universal Access>Keyboard).
    After typing "Sticky Keys" into Mac Help, I found this:
    "Pressing a group of modifier keys as a sequence
    To perform many tasks on your computer, you need to press one or more modifier keys (Shift, Command, Option, and Control) at the same time as another key. For example, pressing Shift-Command-Q in the Finder opens the Logout dialog.
    If you have difficulty pressing several keys at once, you can make it easier to press a set of keys by turning on Sticky Keys in the Universal Access preferences pane. With Sticky Keys turned on, you can press a set of modifier keys as a sequence. As you press each key, the symbol for the modifier key appears on the screen.
    Choose Apple menu > System Preferences and click Universal Access. Then click Keyboard.
    Select the On button next to Sticky Keys.
    To hear a sound whenever the computer registers that you have pressed a modifier key, select "Beep when a modifier key is set."
    To see an icon indicating which modifier keys you have pressed, select "Display pressed keys on screen."
    You can also use Slow Keys to adjust the amount of time between when you press a key and when it is activated."
    Any of this close to your problem?
    Steve
    Edit: I'm right, it's Sticky Keys:
    http://www.macusenet.com/190284-post2.html

  • Finder displaying deleted files

    I'm having a problem with Finder that I haven't seen before. In the past few days, Finder lists deleted files along the left hand side of it's display, under "Desktop". When I select one of these files the message is "The alias "xxxx" could not be opened, because the original item cannot be found."
    Is there someway to force Finder to refresh it's view so that it don't display those deleted files? Thanks for any assistance.
    iMac G4 17" 1Ghz   Mac OS X (10.3.9)  

    After about half a day of the slow rate of removal of items by "Secure Empty Trash" (as reported in my O.P., above) a few minutes ago I noticed that the temporarily went back to about one item per second.
    About 20 items were removed at the higher removal rate.
    Then, the removal rate went back to about i item per minute.
    Does that help towards solving the issue?

  • Finder is deleting files AFTER successful transfer OS X - Win / sharepoint

    This is strange but I've encountered it a number of times now. I'll set a bunch of files (large) to transfer as a selected group between my MBP and another windows machine in our workgroup and upon completion, most if not all of the files will be deleted.
    Anyway, the behavior is that it will transfer all the files (agonizingly slow on a wireless -> wireless connection) one by one. You can even play them on the receiving end after each one completes.
    Then when the transfer finishes, the files will "disappear" from the receiver and can't be recovered. (No recycle bin, just remote delete)
    What's even stranger is that the last time this happened, (12 files for ~4gb) it kept the first two files and deleted the rest of the set.
    I'm pretty sure that I can reliably reproduce this, it's just painful to do. I've lost all faith in the mac finder though and can no longer straight "move" files from one place to another. I have to copy, verify, and delete. sigh
    I'm all patched up with the latest software updates, and I don't think it's the receivers fault because typically that would entail a move the recycle bin (recoverable).
    I've experienced this with 10.6.4 as well.
    My workaround (which is unacceptable) is to move the files one by one and babysit the entire process.
    What's going on here?

    Apple Support was quite helpful, but in the end I will wait to do a clean install of OS X Yosemite which is due in the Fall and not try and fix OS X 10.9.4 Mavericks.
    It turns out that I run backups on my '/Users/john/Library' and the size of this folder before the 10.9.4 update was 1.07 GB and after the update it is 806.9 MB which is baffling, but in the end all of these problems should be resolved with a clean install of OS X Yosemite.
    One lesson learned for the future is that I will wait on installing an update until it has been in the wild for awhile as a quick OS X Mavericks Finder Problem search and similar searches show there could be an issue.

  • What happens when I delete files from my HD

    OK, my HD is getting quite full, so at some point I am going to have to take stuff off that I don't need and back them up to DVD or something.
    I know that in windows you have to defragment your HD all the time, or it gets messy and starts to run slow.
    But Mac OSs work differently, I believe they automatically defrag all content greater than 20 MB, so there is never any need to perform this kind of maintenance.
    But what if I start deleting files all over the place, some <20MB, inevitably leaving spaces, how does the system deal with this? It sounds potentially hazardous to do this.
    Perhaps someone can explain this to me, suppose I delete a 5MB somewhere in the middle of my HD. Does the system rewrite all the files from that point on, going back 5MB in disk space (if you know what I mean) or does it leave a space, making a note that it is there and waits until a suitable files around the same size comes along and stores it there?

    STU9000,
    Also for redoing your system you might look into Archive and Install. http://support.apple.com/kb/HT1710
    About Archive and Install
    Available in Mac OS X 10.2 and later, an Archive and Install installation automatically moves existing system files to a folder named Previous System, then installs Mac OS X again. (See tip 3.) You cannot start up your computer using a Previous System folder, nor can you "re-bless" the Previous System folder. (See tip 1.)
    You can choose to preserve your user and network settings before installing. This option automatically moves existing users, Home directories, and network settings. This also skips the Setup Assistant after installation.
    Note: Because the "Preserve user and network settings" option moves, not copies, existing users, Home directories, and network settings, from the Previous Systems folder to the newly installed System, these items will not exist in the Previous Systems folder after the Archive and Install is complete.
    Weston

  • Delete File From Mounted Volume

    Hey,
    I am trying to delete the "Calendar Cache" files on both my laptop PowerBook G4 and the Mac Pro Quad that I sync my calendars with. I am using ChronoSync and the individual calendars sync fine, but there is a little house keeping needed with the cache file. They need to be deleted on both systems in order to "refresh" the views of the calendars.
    So after the sync of calendars, I have the software initiating an AppleScript that deletes both. Here's the script:
    +(* PowerBook Files / delete cache file *)+
    +(* Please note that both systems have the same username. This may be arise a conflict *)+
    +tell application "Finder"+
    + activate+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "useranthony"+
    +end tell+
    +(* Mac Pro Quad/ delete cache file *)+
    +tell application "Finder"+
    + mount volume "afp://10.10.10.1/anthonyabraira"+
    + tell application "Finder" to delete file "Calendar Cache" of folder "Calendars" of folder "Library" of disk "/volumes/useranthony"+
    +end tell+
    I am having trouble addressing a deletion on the networked Mac Pro Quad.

    why send it to the trash — just delete it...
    (* PowerBook Files / delete cache file )
    try
            do shell script "rm -rf /Library/Calendars/Calendar\\ Cache"
    end try
    you may need a delay for the Mac Pro Quad to mount
    ( Mac Pro Quad/ delete cache file *)
    --the mount and then the delay
    delay 4
    try
            do shell script "rm -rf /THE-CORRECT/PATH-HERE/Library/Calendars/Calendar\\ Cache"
    end try
    Tom

  • Process Chain - Delete File from Application Server

    Hi Gurus,
    Im working with Process chain, and i have a load from a flat file, so my question is :
    How can i delete that file from the application server after was loaded ?
    THANKS IN ADVANCED !!! I REALLY APRECCIATE YOUR HELP.
    Marcos

    hi,
    I have gone through the forum you have posted for deleting files from application server through process chain.
    I have similar reuirement in my project.
    Can you please provide me the solution?
    Your inputs will be highly appreciated.
    Thanks in advance.
    Regards,
    Lavanya.

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • After delete file from documents the direct link still alive.

    Hello.
    I upload a image to the style libary folder, then i publish the file and delete him BUT the direct link to the image still work.
    I try to upload anther image with the some name but when i try to browse the direct link i get to deleted file.
    If i upload a image and delete it before i publish the file I don't have this problem.
    I try to flush the blob cache with this commends:
    $webApp = Get-SPWebApplication "<WebApplicationURL>"
    [Microsoft.SharePoint.Publishing.PublishingCache]::FlushBlobCache($webApp)
    Write-Host "Flushed the BLOB cache for:" $webAppbut this doesn't work.I clear the cache on the local pc and doesn't work to..Any idea someone?Thanks!

    Hi,
    To check if there is cache issue, please access the url in another PC to see if the issue persists. You could also open style library in SharePoint designer to double confirm it.
    In addition, if you click the ellipsis of the image item, there will be a preview panel to show the picture, is it the newly upload one?
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Hi,delete file from folder?

    hi,i am deleting file from folder as follwos
    <%@ page import="java.io.File" %>
    <%
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\xyz.txt");
    myFile.delete();
    %>
    i am sucessfuly deleted file from above path.
    if i use follwing code i unable to delete my file, can one help,
    how to do it,
    <%@ page import="java.io.File" %>
    <%
    String fname="xyz.txt";
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    myFile.delete();
    %>
    thanks
    pullareddy

    i think if above doesn't work try this it should work
    change this line
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\'"+fname+"'");
    to this
    File myFile = new File("D:\\jakarta-tomcat-4.1.18\\webapps\\ROOT\\upload_files\\"+fname);

  • Delete file from folder only (not from list)

    Hi all,
    I've searched a lot and didn't succeed so far, that's why I need your help. In a cloud context, I'm actually creating and uploading files (pdf and/or xml files) "on the go" to sharepoint folders via the SOAP API and this is perfectly working. But
    in a cloud context, I also need to decomission services which is translated into deleting files into Sharepoint.
    That's where it became complicated, because according to the API we cannot delete files if they are not part of a list structure, which is not my case. Is that true ?
    The only info I have when trying to delete a file via the SOAP Api is : its name, its folder, and the endpoint where the folder is. So my question remains simple I guess : is this possible ? If so, how to (a link to the SOAP body would be usefull)
    Thanks a lot
    Regards
    Baptiste

    Hi,
    According to your post, my understanding is that you want to delete file from folder.
    In SharePoint 2010, It is recommended to use Client Object Model to achieve it, the following code snippet for your reference:
    string siteURL = "http://siteurl";
    ClientContext context = new ClientContext(siteURL);
    //specific user
    NetworkCredential credentials = new NetworkCredential("username", "password", "domain");
    context.Credentials = credentials;
    Web web = context.Web;
    context.Load(web);
    context.ExecuteQuery();
    string relativeUrl =web.ServerRelativeUrl +"/DocumentLibraryName/FolderName/FileName";
    File file = web.GetFileByServerRelativeUrl(relativeUrl);
    context.Load(file);
    file.DeleteObject();
    context.ExecuteQuery();
    If you still want to use SOAP API, we can use the UpdateListItems method under Lists web service to achieve it.
    http://www.dhirendrayadav.com/2010/06/delete-list-items-using-web-service.html
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/61466984-1844-48a1-8c1e-1c59a0f9876a/move-and-delete-files-remotely-using-sharepoint-web-services-?forum=sharepointdevelopmentlegacy
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • SB Audigy Value CMSS Successfully Enabled in Vista, if you call it CMSS

    I've been trying to enable CMSS (at least hear sound from all of the 4 speakers) for a long time and finally successed but in a very strange way. Steps written below are spesific to my system (SB Audigy Value, Onboard Realtek ALC 850) but can? work s

  • New feature proposal

    In a future release of iOS will be possible to switch back, to the old selector of apps in background, with lock rotation or mute control? This without removing the control center functionality. This is my first time here, is this the right place to

  • OMPLUS Export security information

    On the export Advanced tab there is an option to export additional security information. Its purpose - Select this option to include security information such as object privileges or role assignments made to users. Is it possible to do this via OMBPL

  • WRT610N - Incorrect password or unknown username issue

    I have had the router hooked up to WD My Book 1TB HD for a few weeks with no issues.  Now it is requiring that I manually login to the mapped drive to have access to the HD.  Have reset to factory settings and remapped drive, but every time I reboot

  • Music Lost due to system restore

    I have searched but can't find an answer. My computer crashed and a full restore was done. I lost all my music and cannot get it back. Biggest problem is I do not have the Ipod anymore, just had the music on my Itunes. I cannot get support over the p