How to delete a file in the drive?

I'm wondering which class should I check out for deleting files from the hard drive? Thanks!

Hi ,
Method delete() in File class

Similar Messages

  • Very Urjent: How to delete temporary files on the server.

    EBS:
    We are facing a big issue with huge volume of temporary directory.We have created invoice program which uses Bursting concept. Every concurrent program is erroring out. How to delete those files automarically.
    Where these temp files are getting stored. How can we delete them once the concurrent request is completed.
    Please help me..its a huge issue. Thanks in advance.

    Sorry Steven,
    I saw your solution. Thanks for that. But I just want to know, do we have any setups in XML Publisher Administrator or bursting control file to delete the files automatically once the concurrent request is completed.
    And one more thing I found is, In the xml administrator, General properties i have specified the temporary directory as '/tmp'. But all the temporary files are loading in '$XDO_TOP/temp' directory. Why is this..

  • How to delete "other" files on hard drive

    Our 500 hard drive is almost full,  256 of it is labled as other,  how do access these files to deleate them?

    Other means anything that isn't music, movies, photos, programs, and backup files. What hasn't been specifically mentioned? Documents and the operating system. Other is basically the operating system (OS X) and the temporary files the OS needs to function. If you are curious you may notice that Other is smaller when you first restart your computer and that it grows the longer the computer has been 'up' (that is used without restarting or shutting down). For most people Document files take up a very small amount of hard drive space which is probably why it doesn't get its own category.
    You really have little control over Other. Photos, music and movies take up the most space on most people's drives and should be the target of your investigation. I generally recommend that people buy an external drive and movie their iTunes library to it. This article explains how to make the move. Once you've done it you can delete the iTunes Music folder from your computer's hard drive (it can be found in your iTunes folder which is in the Music folder). Don't delete the iTunes folder or anything else that is inside it.

  • How to delete all files on hard drive

    I am selling my iMac 27" and I want to deleted all of my files except for the IOS Lion.  Can anyone explain how to do this and get the hard drive back to a factory setting so that I can sell the computer and not have to worry about content being on the hard drive.  I have a external hard drive backup.
    Thank you,
    Scott

    Hi Scott,
    2 ways to go...
      1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
       3. Click the Erase tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select your Mac OS X volume.
       6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data, Erase... after completion do a new install.
    Or...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    In the same pref pane highlight your old account, click the little minus icon, then use Disk Utility to Secure Erase Free Space.

  • Weird problem how to delete a file in the cloud

    Hello there,
    I'm now a proud member of the Adobe Creative Cloud.
    Once signed in everything looks normal and I can upload a file simply by dragging and droppping.
    Now the problem: i'm not able to DELETE a file; there is no trash icon like in the online video of Adobe.
    If I select a file, the only actions on the left marker are available:
    - Post Publicly (behance)
    - Send Link
    - Move
    - Rename
    - Archive.
    If I use the main blue button (Actions), the only actions I see are:
    - Create a folder
    - Upload
    - Search
    Please reply to this problem, kind regards.
    If you want I'm happy to send a screenshot.

    Thanks Mylenium.
    Here is a post with screen shots covering how to Archive and Permanently Delete files - http://forums.adobe.com/message/5362803#5362803.

  • How to delete locked files on pen drive

    I have a pen drive which has 2 partitions and there is no problem with one partition.  Other partition shows itself as "CDROM" and none of the files in that partition could be deleted.  There is no option to format the entire pen drive also.  Even if I format it, the "CDROM' partition still remains.

    Hi Scott,
    2 ways to go...
      1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
       2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
          *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
       3. Click the Erase tab.
       4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
       5. Select your Mac OS X volume.
       6. Highlight the drive, select Partition Tab, then Format type... MacOS Extended Journalled, select the Security Options button, choose Zero Out Data, Erase... after completion do a new install.
    Or...
    Open System Preferences>Accounts, unlock the lock, click on the little plus icon, make a new admin account, log out & into the new account.
    In the same pref pane highlight your old account, click the little minus icon, then use Disk Utility to Secure Erase Free Space.

  • How to delete .inProgress file from the Time Machine?

    So my back up-ed had failed and I deleted it, and I can't empty the trash and when I try to put it back it doesn't want to. Help me please! Because now all of my space is used so I can't back up anymore.
    Thanks in advance!

    You never delete a Time Machine backup by dragging it to the Trash. You are supposed to use the TM application to manage the backups. What you will need to do now is to simply erase the drive using Disk Utility.

  • How to delete other files(yellow color code) from the hard drive, how to delete other files from the hard drive

    how can i delete the yellow color code items from my hard drive? What are these other files anyway? I wanna save some memory space from my storage.

    Macbook Pro community is here
    Following thread could solve your question.
    https://discussions.apple.com/message/19030300#19030300

  • In adf,how to delete a file generated on server,when the webpage is closed

    Hi,
    I have an application consisting of 2 pages. in the 1st page i will give some input details and when i click on submit, some java code is getting executed in the back. That java code generates a csv file in the server location. after succesful execution of java code, i was redirected to 2nd page. In 2nd page, i am giving option to download and when the user clicked on download button and after the file is downloaded -- in the backend i am deleting the file from the server. Till this point everything is fine. But if the user didnt click on the Download button and instead if he closes the browser, the csv file gets remained on the server itself. This is the issue i am facing .. I am not able to get an idea in ADF Framework, how to delete a file when the browser is closed. Please help me out in this.
    Thanks in advance !!!

    ADF has nothing to do with tracking browser close buttons. What you can do is call a JS function and call the method which deletes the file from within the JS function. ADF has a component for calling java code from JS call.

  • When using a Seagate 1T external hard drive and Time Machine to back up hourly, if I delete photo files from the Mac hard drive before the next back up, are these retained on the Seagate drive or will they be lost (overwritten) in the next backu in the ne

    Does Time Machine erase previously saved files if, say, photos are deleted from the Macbook upon the next update, or will they be stored indefinately despite the current status of the files stored on the computer? Eg. can I bckup photo files to a Seagate 1T disc and then delete them to make more room on the computer in the knowlwdge that they are always going to be on the Seagate disc? Sorry if this is very elementary but I have not used a back up before like this, and am not sure how successive backups are overlaid or retained. Thanks!!

    TM is not designed to do what you ask. As Allan wrote TM is an incremental backup not an archival solution.
    If you delete a file from the HD it will eventually be removed from the TM backup (if it ever makes it on to the backup at all).
    How long before it is removed depends on a number of factors, TM disk drive size being one factor but not the only one.
    Material that is impossible to replace and is important to you (image files usually fitting that description) need to be backed up to as least one other drive and preferably more for long term storage.

  • HT2674 I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive. Now, the trash can will not empty some of the files deleted.  File folder: "Core Services" contains a locked file: "boot.efi".  It will not

    I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive which operates from Time Machine.
    Now, the trash can will not empty some of the files deleted from the backup harddrive.
    The trash contains-- File folder: "Core Services" which contains a locked file: "boot.efi". 
    It will not delete.
    How do I get the trash can empty of these files?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • Delete  flat file from the local drive after downloading in the program

    how to <b>delete flat file from the local drive after downloading in the program</b>
    I am using gui_upload to upload flat file data in internal table. and after that i dont want that flat file in the disk. i want to delete it.

    Once the file has been uploaded into the internal table call the<b> FILE_DELETE </b>method of the class  <b>CL_GUI_FRONTEND_SERVICES</b>.
    DATA: v_rc TYPE i.
    CALL METHOD cl_gui_frontend_services=>file_delete
    EXPORTING
    filename = 'C:\TEMP\MATERIAL.TXT'
    CHANGING
    rc = v_rc
    EXCEPTIONS
    file_delete_failed = 1
    cntl_error = 2
    error_no_gui = 3
    file_not_found = 4
    access_denied = 5
    unknown_error = 6
    OTHERS = 7.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Regards
    Kathirvel

  • How do I delete a file from the Adobe Reader for iOS?

    How do I delete a file from the Adobe Reader for iOS?

    Read this:
    http://forums.adobe.com/thread/1012973?tstart=0

  • I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    I have 2 iCloud accounts. Can I delete one account so I can make use of additional space I purchased for the secondary account? Also iPhoto seems to only connect to the primary account? How do I send files to the secondary account?

    Both accounts are completely independent from each other. In order to use the space that you have purchased for your secondary account, you must change it to become your primary account. Yes, as you said, services like photo stream only work with the primary account. Unfortunately, there is no comfortable way to just transfer data from one account to another one, but you can do it via a third party application e.g. via Dropbox: e.g. for photos: photos stored with your current primary account > manual transfer to dropbox > after you made your secondary account to the primary account,  transfer the photos back to your new primary account etc.

  • I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    If the external drive can be seen at all in Disk Utility, follow the instructions for repair here.

Maybe you are looking for