Delete file from directory which

Hi ,
I want to delete files from a directory in  Application server.
I have the file name as fn_13/07/2007.txt
Have a condition that files should be deleted which are less  than 10 days.
Is there any function module to do this.
Thanks in Advance.
Regards,
Indhra

Hello Indhra,
These methods may help ( from CL_GUI_FRONTEND_SERVICES )
<b>DIRECTORY_BROWSE</b>     Static Method     Public          Shows a Directory Selection Window
<b>DIRECTORY_CREATE</b>     Static Method     Public          Creates a Directory in the Client
<b>DIRECTORY_DELETE</b>     Static Method     Public          Deletes a Directory in the Client
<b>DIRECTORY_EXIST</b>     Static Method     Public          Checks if a directory exists
<b>DIRECTORY_GET_CURRENT</b>     Static Method     Public          Returns the Current Directory
<b>DIRECTORY_LIST_FILES</b>     Static Method     Public          Lists Files in a Given Directory
<b>DIRECTORY_SET_CURRENT</b>     Static Method     Public          Sets the Current Directory (Do NOT Use)
<b>ENVIRONMENT_GET_VARIABLE</b>     Static Method     Public          Gets an Environment Variable
<b>ENVIRONMENT_SET_VARIABLE</b>     Static Method     Public          Sets an Environment Variable
<b>EXECUTE</b>     Static Method     Public          Starts an Application or Opens a Document in the Client
<b>FILE_COPY</b>     Static Method     Public          Copies a File
<b>FILE_DELETE</b>     Static Method     Public          Deletes a File

Similar Messages

  • Delete file from directory

    Hi All,
    After uploading data from file to internal table i want delete the file from the directory. How to do this any function modue for this?
    Thanks and Regards
    Parthipan.

    Hello Parthipan
    You can use function module <b>EPS_DELETE_FILE</b> to delete the file from the application server.
    Regards
      Uwe

  • Delete files from directory?

    I've ripped songs from CD's into a folder on my hard drive and named the folder "Ripped". I ripped them as MP3 files. Then I added those songs into my iTunes library. Are those songs copied into the iTunes library into some directory somewhere? Or are the entries in the iTunes library merely pointers to the original directory where the songs are stored? I want to delete the songs from the "Ripped" directory if they've been copied into an iTunes library directory. But if the iTunes library merely "points" to the original "Ripped" directory, I cannot delete the songs from "Ripped".
    If the files are copied into a separate directory, where is that directory? And if they're copied, do they retain the original MP3 format?
    **Sorry...I should have posted this in the iTunes discussions, not the iPod discussions.**
    Message was edited by: jla930

    Open the Advanced section of the iTunes preferences and check whether iTunes is set to copy imported music to the iTunes music folder; you can also find the location of the iTunes music folder here.
    (17307)

  • How to delete a READ ONLY file from Directory

    Hi Friends,
    how to delete a READ ONLY file from Directory , file is in my system only.
    Please help me .
    note: its read only file.
    Thank you.
    Karthik.

    hI,
    try with this statement.
    delete dataset <datasetname>.
    this will definitely work.
    Regards,
    Nagaraj

  • Script to make 'delete' file from system and not just library svp.

    I would like something, possibly a script, to replace the delete option in iTunes so that a file deleted from within iTunes is actually deleted from the HDD. I have downloaded a script that can do this but the option ad to be called from the script menu and was not convenient, so I am looking for a way to amend or replace the menu option to achieve this in a natural fashion.

    Okay, here I found this page: http://ask.metafilter.com/18737/How-can-I-make-iTunes-delete-songs-again
    which is nice and informative. What I have found is that in order to delete files natively from within iTunes the default settings of keeping your music files in the iTunes music folder (which can be modified to another directory in iTune's preferences) must be left untouched. This is because iTunes will only delete files from the HDD if they reside in the music folder iTunes refences to. Its a nice structured system that iTunes itself keeps organised so its the better option, as oposed to having files everywhere.
    In order to reset the iTunes dialog messages, the file "com.apple.iTunes.plist" in the "~/Library/Preferences/" dir must be deleted - which resets everything, as the documentation suggests you will know because the copyright agreement will launch when iTunes is started. Please make sure iTunes is off before deleting the file. The documentation also suggests deleting another file but I didn't do this and it worked for me.
    However the ability to delete movies from the HDD is not an option from within iTunes, I suggest finding a script that will move all movies in a certain playlist to the recycle bin folder

  • 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

  • Deleting file from application server

    can any one tell me how to delete file from application server?

    Hi,
      Use statement
      delete dataset 'tmpfile.txt'.
    \tmp\file.txt is the file path on application server which you want to delete.
    Regards
    Sailaja.

  • T-code for delete file from application server

    Hi all!
    Please, has any t-code for delete file from application server? For upload exist CG3Z, for download has CG3Y. And for delete? Has anyone?
    I need to delete file from application server in QA system and i don't want to create a program for this because i will need to transport a request from DEV to QA.

    I don't have contact with basis team.
    The FM EPS_DELETE_FILE support directory name with max 60 char. My dir. has more than that. I need a transaction for this.
    Anybody know if this transaction exist?

  • Upload file from Directory via Background Jod

    Hi All,
    I want to upload a excel from directory. which is neither on my PC nor on application server. This is on some other PC.
    I used the FM  TEXT_CONVERT_XLS_TO_SAP which is working fine for foreground mode  But not working background job because GUI FMs work for foreground mode only.
    As of my knowledge I can not use OPEN DATASET if file not exist on application server.
    Please suggest how can read this file from any PC in background mode.
    Jitendra

    Ask you basis/network admin for tools like FTP or shared folder to access data files.
    If you are not executing on a workstation with Excel installed, you cannot use OLE2 to convert Excel to Abap (nor any GUI tools) so either convert sheet to a flat (e.g. csv) format or use a tool like abap2xlsx.
    NB: Also use search tool, there are already many threads/discussion on this kind of subjects.
    Regards,
    Raymond

  • How to delete file from Window server

    Hi
    Can anybody tell me that Is there any function module for deleting file from presentation server like C directory.
    Quick suggestion will highly be appreciated!!!!!!!

    Try this:
    CALL METHOD cl_gui_frontend_services=>file_delete
      EXPORTING
        filename             =
      changing
        rc                   =
    EXCEPTIONS
       FILE_DELETE_FAILED   = 1
       CNTL_ERROR           = 2
       ERROR_NO_GUI         = 3
       FILE_NOT_FOUND       = 4
       ACCESS_DENIED        = 5
       UNKNOWN_ERROR        = 6
       NOT_SUPPORTED_BY_GUI = 7
       WRONG_PARAMETER      = 8
       others               = 9
    this is pretty gud approach .
    Message was edited by:
            Nishant Rustagi

  • Cannot delete files from batch file

    This is a test case.
    If  have the following in a .bat file. If I run it from CMD box, it works fine.
    forfiles /P c:\scripts\ /S /M u_ex*.log  /C "cmd /c del @PATH" > c:\scripts\output.txt
    But If I run it from a scheduled task, it generates the output.txt file which contains a list of the files it SHOULD have deleted, but nothing gets deleted.
    The scheduled task runs as a user who is member of administrators group, so has full permissions.
    I have also checked the box "run with highest privileges" 
    anyone know why it wont delete files from a scheduled task ?
    Snake

    Hi Snake,
    I'm glad the issue has been worked out, Please feel free to ask us if there are any issues in
    the future.
    If you have any feedback on
    our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support

  • Cannot delete files from my ipod shuffle!!!

    I am new to using an ipod and i cannot delete files from my ipod, on itunes, it only shows the license agreement where the ipod files are supposed to be and no matter how many times i uninstall and reinstall itunes and agree to the license agreement i can't access anything else. can anyone help me at all i feel like a complete idiot!

    Pressing return will get past this screen as there is a button at the bottom right of iTunes which you likely cannot see.
    Set your screen resolution to at least 1024x768 to see this button.

  • HOw to delete files from remote server?

    Hi,
    I want to delete files from a directory on remote server.
    I use the following command to delete on current server:
    find $srcdir -mtime +90 -name "COR*.txt" -exec rm -f {} \;
    Now, how can I delete files from remote server ?
    Thanks!
    Yogini

    Some possible options:
    1. There exists SSH implementation for Windows.
    2. You can make a workaround. You can setup share for specific/wanted directory.
    Then you can mount it on Linux machine and execute command localy and delete files "localy" in mounted directory.
    3. You can setup FTP server on Windows machine and do that remotely via FTP commands.

  • Can't delete files from iTunes File Sharing

    iPad, IOS 8.1.3
    MacBook Pro Retina, OS 10.10.2
    iTunes, v12.1
    I'm trying to delete files from iTunes. In this instance, I have files I made in Pages, via my iPad, I have learned how to move them to my computer without using iCloud, which I prefer. Now I can't get them off of the iTunes app on my computer.
    I have deleted them from my iPad and from my computer but they are still in the iTunes app on my computer. To see these one must plug the iPad into the computer. When iTunes, on the computer, opens, choose Apps from the side bar, (under settings), scroll down to File Sharing, pick the app, in this case Pages and there is a list of all the files, (docs), still on the computer, within iTunes.
    If i drag one of the files to the desk top on my computer and clic on it it will open. This is true for any of the apps under File Sharing.
    This seems very insecure to me and it also appears to take up space on my iPad.
    Anyone know how to get rid of these files?

    Hi,
    I had an orhpanded link to a networkshare which does not exist anymore. With the "cmd" key pressed down I was able to dump the favorite to the trash.
    Thank you.
    Cheers
    Robert

  • How can I delete files from My Mac Book Pro safely to create more space?

    Hi,
    I need to delete files from my Mac Book Pro and I am not sure how to do it safely without affecting my computers drivers or operations.
    In my Finder - All Files Section there are certain files in the Preview, marked as "PNG Image", Window Image, GIF image, XLM. when I look at them they seem scripted or sections of an image. How do I know which files are safe to remove
    I seem to find a lot of duplicated files - is there a way of stopping this from happening?
    Thanks from a little frustrated Mac Book user.

    Welcome to Apple Support Communities
    Transfer them to an external disk formatted in "MS-DOS (FAT)" with Disk Utility > http://pondini.org/OSX/DU1.html
    If you have the pictures in iPhoto, choose them with the Command key, go to File menu (on the menu bar) > Export, and copy them to the external disk. Then, connect your external disk to the PC and move them.
    If you have the pictures in Finder, steps are the same, but in this case, you will have to drag the pictures you chose to the external disk that you can find in the Finder sidebar, under "Devices"

Maybe you are looking for

  • Did a restore, should I reformat my drive?

    I have a late model 2009 13" macbook that was on os mavericks, did a restore using time machine and now it has   lion...should I totally wipe out my drive and start over? I had a constant spinning wheel, then when it finally stopped, the mouse would

  • Configuring iWay Siebel  Sender/Receiver adapter in SAP XI.

    Hi, I am evaluating iWay Siebel Adapter for connection between Siebel system and SAP system. I am using both the sender and receiver iWay adapter for both inbound and outbound scenario. In both the case the transport protocol used is HTTP. I searched

  • Flash 10.0 not recognized CentOS

    Not sure the exact version of flash because it is the new one.  If it were working correctly I could view the flash version on the web site.  A "strings" command on libflashplayer.so shows what I entered below though. Flash version: Shockwave Flash 1

  • FM to read salesorder text

    Hi everybody, does someone know an useful fm to read the texts of salesorder (header & positions) ? regards Joerg

  • No light on my screen - can see my work in the background

    i have a black screen on my macbook pro... i can see the work in the background - it is faint. the light button on the screen has been tried..... anyone have a suggestion on how to get my screen back? please?