Unable to delete File in file system

I have built an explorer just like a Windows explorer. I am not able to delete individual files. but the files in a folder can be deleted. How should I proceed?

Madam, we wouldn't be able to help u unless u tell us in detasil or post ur code...Anyway, Any File can be deleted by Following Procedure.
File file = new File("<Path to File;FileName>");
file.delete();
Please note that the File can either be a Directory or an absolute Individual File
Cheers,
Manja

Similar Messages

  • Unable to delete Address Book File

    I am unable to delete nor copy over an Address Book file that I have on an external HD connected via Airport Extreme. When I connect the HD directly to my Macbook Pro, I am able to delete the file - but not via Airport Extreme. When I attempt to delete the file, I get a message from Trash as follows: The operation cannot be completed because the item "Metadata" is in use. Same message when I attempt to replace the file with a new file. In other words, I am unable to use AE to transfer my Address Book file to my external HD, unless I change the name of the file. What is going on here?

    Hello Bob.
    You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • HT1923 Reinstalling iTunes, but unable to delete C:\Program Files\Common Files\Apple\.  I have admin status, but I get an error saying "Destination Folder Access Denied"

    Following instruction to reinstall iTunes, uninstalled iTunes and related components, verified all deleted.  Need to delete C:\Program Files\Common Files\Apple\ manually, but am getting and error that says "Destination Folder Access Denied".  I do have admin status on my user account.  What's next?  Many of the files in these directories are Mobile Me and iCloud, should I uninstall those too?

    I have the same problem and it looks like others do too. I have spent far too much time trying to find a solution but nothing has worked so far.
    Does "end windows explorer for the processing menu" mean to end explorer.exe in the processes window in Windows Task Manager?  Does "start new task" means File-New Task in Windows Task Manager?  If so, the solution does not work for me.
    Any other suggestions would be deeply appreciated.
    Thank you.
    Cathy

  • (6230i) Unable to delete...file from phone memory

    Hello ...please help ...
    ...im having trouble deleting file from my phone memory (music file) that i downloaded from www.uaemobiles.com/wap/down.aspx?MN=3332383573&CD=​74752
    file is stil in my service inbox..
    please guide me ...i wanna get rid of that file..

    Check the 'More Like This' discussions on the right hand column.  I suspect you may find the answer there.
    Ciao.

  • Unable To Delete A Music File From iPhone 4S

    There is a music file on my iPhone 4S that I can not delete via the phone or via iTunes (iTunes does not recognize the file but I can play it via the phone directly).  When I pull up the file in my "music" folder there is no "delete" option.  Any ideas?
    Thank you.

    What happens when you swipe left-to-right across the song...does a delete button appear?

  • Unable to delete a music "file" from my iPhone while syncing

    I have a file that is appearing under my iPod cover flow area on my iPhone 4. It says it is a song from an album, but when it is touched and flips, it says "Unknown Unknown" on the reverse side. It will disappear if I remove everything from my music library in iTunes, but the second I add ANY album or song back to my iPhone, it reappears again. It does NOT appear under my music list anywhere in iTunes. How on earth can I delete this when I cannot find it anywhere?

    What happens when you swipe left-to-right across the song...does a delete button appear?

  • Insufficient Disk Space but unable to delete or move files to EHD

    My daughter is home from her freshman year of college, and her MacBook hard drive is FULL. Her plan was to begin by moving her iPhoto files to her EHD, but told me it 'wouldn't let her.' She's right - I can't move or delete the photos in her iPhoto Library. I'm having the same issue with other file formats, including .docs.
    What am I missing, or what should I be doing to resolve this? Many thanks (in advance!)

    The drive is about 99% full (I know, I know ... trying to make my 19-year old daughter understand how BAD this is ... @#$@#$@#$ ) NO error messages even pop up.
    In iPhoto as I tried to move files to the EHD, I had no luck at all. When I tried simply moving to the Trash, I had no luck EXCEPT for a couple of folders with only a few photos, and only then if I moved to trash from the File menu - no dragging, no copy/paste or cut/paste.

  • I am unable to delete a backup file from my Time Capsule.  What to do?

    Separately I asked for and got help here in relation to what to do with my Time Capsule when I changed computers.  I erased the contents of my Time Capsule that had been put there using my old Mac Mini and using Time Machine created a new backup of the same data that are now on my new Mac Mini. 
    In the process, however, I mistakenly created a backup of a large folder that I do not need.  I researched how to delete it using Time Machine and following the simple steps set forth tried a number of times, all without success, to delete the folder on my Time Capsule using Time Machine.  I go into Time Machine, I find the folder, I highlight it, I open the little widget and choose 'Delete all backups' of it, I choose 'OK' when asked if I am sure I want to do it . . . each time, though, nothing happens after that.  The folder remains there as it was, undeleted.
    Can anyone suggest what I might do?
    Thank you.

    Thank you for your further help, Bob.
    My Mac Mini is a desktop.  I am using Mountain Lion with it, updated to the latest version.
    I went back into Time Machine (and now understand what you mean about 'Star Wars' screen), and found the timeline on the extreme right edge of my computer screen, as you explained.
    Despite the passage of time, I have only three 'times' expressed on the scale.  Two are purple, and represent the two times yesterday that I did backups, the original full backup and one subsequent one (I do not have Time Machine set up, now, to do automatic backups, only manual ones as I direct).  One is white and is marked 'Now'.
    When I click on the white time, 'Now', for my external HD, I get a long list of items, all but one of which I do not want and tried to delete yesterday.  Interestingly, however, when I click on either of the two purple times, for yesterday, the only item that appears is the one that I want to backup.  None of the other items is there. 
    If the purple items are the only ones that represent actual backups, then it would seem that the deletions I did yesterday in fact worked.
    If that is the case, again, there remains a bit of a puzzle as to why the 'now' position shows other items too, but if in fact that is just a glitch and does not represent anything actually saved on my Time Capsule, then there is no reason for me to be fussed, only puzzled.
    Your thoughts on what I have found and tentatively concluded?

  • Unable to delete a file

    I'm unable to delete a a file from the filesystem.
    String fileName = "dummy.xml"
    boolean delete = (new File(fileName)).delete();It's not deleting this file from the filesystem.

    Can anything else delete that file? Is the fileopen?
    I don't know what you mean by can anything else
    delete the file.I mean can you delete the file from the command line, a window, whatever. Is it just Java's delete that is having this problem or is it the file system?
    No this is not opened/or use.How do you know?
    DO I have to specify a path for this. Certainly. How else would Java know which file to delete?
    If yes, please read on ........
    the path where this xml file resides could by
    anywhere in the file system. If it is how do I access
    it since there is no specific location (it is left to
    the user's choise to save the file anywhere he
    wants)Keep the user's choice.

  • DUMP FILES UNABLE TO DELETE IN LINUX

    Hi
    Our company currently runs the databases on RAC (Oracle 11gR2). We generally take the backup of SCHEMAS everyday using the datapump. My issues here is I am unable to delete the dump files older that 3 days using the below script
    00 14 * * * find /nbds2/orabkp/*.dmp.gz -mtime +3 -exec rm -f {} \;
    but I am able to delete the files using the below command
    rm -f abcb.dmp.gz . I verified the file permissions etc on the dump file that is generated everything looks fine.
    Even I tried using the below script
    #################cut here - rmdumpfiles #############
    #!/bin/bash
    echo "starting at `date`"
    for i in `find /nbds2/orabkp -mtime +3 -name "*.dmp.gz" `
    do
    echo "deleting $i "
    rm -f $i
    done
    echo "done at `date` "
    chmod 750 rmdumpfiles
    Crontab entry:
    00 14 * * * /home/oracle/rmdumpfiles >> /home/oracle/rmdump.log
    But the files didn't get deleted and below is the information I got from the log file
    "starting at Mon Feb 18 17:59:01 PST 2013
    done at Mon Feb 18 17:59:01 PST 2013"
    Can someone help me please
    Thank you
    Karren

    Hi Dude,
    Thank you very much for your quick response. Actually I had to delete a lot of files manually due to storage issue( I am left with only the dump files from of 17,18,19). But my results are weird. I am not able to find the issue. Can you help me
    stat /nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_17_2013.dmp.gz
    File: `/nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_17_2013.dmp.gz'
    Size: 7013910756 Blocks: 13753000 IO Block: 65536 regular file
    Device: 16h/22d Inode: 21604 Links: 1
    Access: (0640/-rw-r-----) Uid: ( 1001/ oracle) Gid: ( 1001/oinstall)
    Access: 2013-02-17 18:00:04.000000000 -0800
    Modify: 2013-02-17 18:21:11.000000000 -0800
    Change: 2013-02-17 18:26:41.988556000 -0800
    find /nbds2/orabkp/* -iname "*.dmp.gz" -mtime +3
    Ans: None
    find /nbds2/orabkp/* -iname "*.dmp.gz" -mtime +2
    Ans: None
    find /nbds2/orabkp/* -iname "*.dmp.gz" -mtime +1
    Ans: /nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_17_2013.dmp.gz
    ls -l /nbds2/orabkp/FULL_EXP_FSDEV_*
    -rw-r----- 1 oracle oinstall 7013910756 Feb 17 18:21 /nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_17_2013.dmp.gz
    -rw-r--r-- 1 oracle asmadmin 75805 Feb 17 18:21 /nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_17_2013.log
    -rw-r--r-- 1 oracle asmadmin 75805 Feb 18 18:21 /nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_18_2013.log
    -rw-r----- 1 oracle oinstall 7014081297 Feb 19 18:20 /nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_19_2013.dmp.gz
    -rw-r--r-- 1 oracle asmadmin 75805 Feb 19 18:20 /nbds2/orabkp/FULL_EXP_FSDEV_expdp_Feb_19_2013.log
    date
    Ans: Wed Feb 20 09:27:02 PST 2013
    Now I am able to delete the files thank you very much for your help.This is the first time I am having this issue I am not sure the reason behind it "date" and "mtime" are conflicting and that is causing the issue. Can you please enlighten me regarding this
    Edited by: 988802 on Feb 20, 2013 9:42 AM
    Edited by: 988802 on Feb 20, 2013 10:04 AM

  • BOBJ is unable to delete file from OFRS

    System Info:
    Business Objects Enterprise XI3.1 SP3 FP3.2
    Windows 2003 Server Enterprise Edition SP3
    Oracle 10.2
    Java 1.6.0_20
    APACHE Tomcat 5.5.20
    2 clustered servers
    FRS located on SAN Disk Drive connected to primary server (Winchester1)
    We use WebIntelligence exclusivly.
    We are receiving the following error in our event log on our clustered server:
    Source: BusinessObjects_CMS
    Category: General
    Type: Warning
    Event ID: 33018
    Computer: Winchester2
    Unable to delete file from the file repository. Make sure a File Repository Server is running and registered and enabled. Details : Failed to connect to the File Repository Server output. Make sure the server is up and running.
    We have verified the FRS is running and we are able to connect to it from our clustered server (Winchester2).  The security settings are set to full control for the admin group and the users have Read/Write access to the file store folders.  The errors are filling up our event logs and causing issues with the servers.  this appears to be happening each morning and the file it is trying to delete is an .xls file.
    We have a ticket open with SAP Support but they are just as baffled as we are and keep sending us from one group to another and tell us they need to look at it on thier end and they will get back to us.
    Has anyone had this happen on their system?

    Hi Richard, did you ever get this issue resolved?  We are having a similar issue on XI R3 SP4 using NAS/CIFS shares for our File Stores.  We see this issue mainly after our servers are patched and a full environment restart is initiated.  Like you, our event logs fill up with so many error messages I cannot pinpoint exactly when the issue starts happening.
    Any help would be much appreciated.

  • "unable to delete" file on 6267

    I have a Nokia 6267 S40 phone made for Malaysia and I am in the US.
    I’ve got a file that I cannot delete from the phone memory (no mem card) which seems to be causing problems in other applications. It is a downloaded video file with the extension .3gp.
    When I try to delete it, I get the message “unable to delete” or if I mark it and I try to “delete marked” I get the message “item being used by another application”.
    When I try to open the file, the phone locks up, then I have to remove the battery.
    I am unable to rename the file, I get the message: “unable to rename”.
    If I try to move the file and get message “file in use, unable to move”.
    Sometimes I cannot even open the “gallery,” and get the message “file system is busy”
    Other problems:
    Cannot access the internet, the phone tries, but does not get past “processing data” then if I try to exit, phone locks up.
    Cannot open any applications, however I can open the folders
    Calculator will not open
    Games will not open
    Cannot save a note, will edit but not save, phone locks up if I try to save, same happens with the calander.
    I’ve tried restoring the factory settings, both “settings only” and “restore all.” In both instances this message appears, “Restoring settings. Please wait.” And I wait and wait and wait…and then I remove the battery and try something else.
    The only way I seem to be able to do anything with this particular file is if I am able to open the “gallery,” highlight the file, select options, select use video clip--as contact video then go into that contact and choose to edit—then I can view the video.
    I have tried using PC Suite also, with the same results. When I try to delete from file manager I get this error: “Operation failed. A file or folder you are trying to delete, rename, move or copy is protected from access.”
    Please help.

    It seems that this file got corrupted. An advice: never download and save files into the cellfone memory. Save them in the memory card to avoid these problems.
    If there is a nokia care centre in the USA, better take it now. Or try to upgrade (not a sure thing that fix the problem)
    Sharing is Good!!!
    Nokia5200; Sony Ericsson w710i; Nokia 3250; Nokia 5610XM

  • Unable to delete the file. (Some times deletes and sometime fails to delet)

    Please help me in deleting the file from the temporary location .
    Below is my code
    //Append the session is with filename as there is possibility of having same name of file.
    try{
    boolean isMultipart     = ServletFileUpload.isMultipartContent(request);
              if (isMultipart)
                   // Create a factory for disk-based file items
                   factory = new DiskFileItemFactory();
                            // Create a new file upload handler
                   upload = new ServletFileUpload(factory);
                   // Parse the request
                      List /* FileItem */ items = upload.parseRequest(request);
                           // Process the uploaded items
                   Iterator iter = items.iterator();
    if(strInputFileName.lastIndexOf("\\")== -1)
         strInputFileName = (String)mPropBag.get("TempUploadDirM") + strInputFileName;
      }else
         strInputFileName = (String)mPropBag.get("TempUploadDir") +   strInputFileName.substring(strInputFileName.lastIndexOf("\\"));
    strInputFileName = strInputFileName + "_" + request.getSession().getId();
    uploadedFile     = new File(strInputFileName);
    item.write(uploadedFile);  //// I am Writing the file in this location appened with the session Id because there might //be a  possibility of having same name of file.
    catch(......)
    finally
         uploadedFile.delete();
         uploadedFile = null;
         upload = null;
    }I am unable to delete the file from the temporary location
    some times it is deleting and some times it is not deleting.. I have also tried ...deleteOnExit();

    Make sure you've got no other processes holding onto it (Windows Explorer, for instance) and that you've closed any streams involved with the file. If that fails, try calling System.gc() just before deleting the file. This is a workaround for a bug in certain JVMs on Windows machines

  • Unable to delete file from trash because it's "in use" not locked.

    I'm unable to delete a file from trash. I keep getting the following message: "The operation can’t be completed because the item is in use."  I've confirmed the file isn't locked and I've tried renaming it but still no luck. I'm running OSX 10.8.4. Any thoughts?

    Check the 'More Like This' discussions on the right hand column.  I suspect you may find the answer there.
    Ciao.

  • Delete a .csv file from desktop system

    Hi All,
    My requirement is to read the .csv file from the desktop system having the shared folder and delete the file after read successfully.
    Here I can read the .csv file from the location using the function RFC_REMOTE_FILE and updated the content into internal table.
    But I cant delete the file from the presentation server ( Desktop system).
    Can anyone tell me how to delete the .csv file from the desktop system on different location.
    Note:
    I followed this link to read file:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2&overridelayout=true

    Hi Rob,
    Thanks. I solved this problem myself.
    The solution to delete the file from remote system is
    concatenate 'DEL' i_filename i_dirname into v_bkfile separated by space .
    call function 'RFC_REMOTE_EXEC'
      destination  c_dest
      exporting
        command               = v_bkfile
      exceptions
        system_failure        = 1  MESSAGE v_ermsg
        communication_failure = 2  MESSAGE v_ermsg.

Maybe you are looking for

  • Do you want to save changes you have made? Message

    I have a form with 3 data blocks. Data block 1- master_blk data block 2- detail_blk1 (detail of the master block) data block 3- detail_blk2 (detail of DETAIL_BLK1) So its a 3 level parent child relationship. MASTER_BLK parent to DETAIL_BLK1 and DETAI

  • How do we know if it's a leaf in a binary tree

    how do we know if a node is a leaf in a binary tree?

  • Visual Administrator:  error in HTTP Destination

    I want to create a http destination to an ABAP AS in the Visual Administrator like it is described in the Installation Guide for ADS: "Visual Administrator - Cluster - Services - Destination - HTTP - New". After typing in the destination, I wanted to

  • Condition type to POS

    Hi , Should I use VKP0 or PR00 for download the retail price to POS? I am not going to use calculate price. User will direct input the retail price. Pls advise Thanks

  • New hard drive slower than old one

    Hello, my Seagate 120GB 5400rpm drive crashed 6 weeks ago and I made use of the warranty to get a replacement (refurbished) drive. I think this drive is no good because I have noticed a marked decrease in performance: -Upon coming back from sleep mod