Solved

ftp

Posted on 2011-03-02
5
382 Views
Last Modified: 2012-05-11
how to delete ifs files
0
Comment
Question by:DCUnited
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Expert Comment

by:daveslash
ID: 35023076

The easiest way to delete a file on  the IFS is to use System i Navigator. Simply expand the "File Systems" and "Integrated File System" tab under your target machine. Locate the folder and the file you're interested in, click on the file, and press Delete on your keyboard.

HTH,
DaveSlash
0
 
LVL 35

Accepted Solution

by:
Gary Patterson earned 500 total points
ID: 35024601
There are several other ways to delete files in the IFS:

If you need to delete files from the green screen, you can use the WRKLNK command and use option 4 or use the RMVLNK / ERASE or DEL commands.

If you are running AS/400 NetServer, you can map a Windows drive to the AS/400 IFS, and then use Windows commands like DEL, or use utilities like Windows Explorer.

- Gary Patterson
0
 
LVL 1

Expert Comment

by:JohnSQL
ID: 35027181
Another way you can delete IFS files and folders is by using the QShell environment, which gives you a "linux-like" command prompt.  From there you can use wildcards and other powerful commands to delete IFS files and folders.
To get started, type QSH and press Enter at the OS/400 command line.  From there you can use the CD /MYFOLDER command to navigate to various folders. from there you can use the LS command to list the contents of the folder.  Type HELP at the QSH command prompt for further commands.
One that I use routinely is to delete files and folders using the FIND command.
here are a few examples (use caution when using FIND and wildcards!):
find . -name "CoverSheet.pdf" -type f | xargs rm   <== will find and delete the file CoverSheet.pdf in any folder below your current folder.
find . -name "200405" -type d | xargs rm <== will find and delete any folder matching that exact name, in any folder below your current folder.
if you want to see what will be deleted before you commit to the actually deleting, just leave off the "| xargs rm" and just use the "find" portion of the command.
Qshell is very powerful, but be careful!
0
 
LVL 5

Expert Comment

by:stevebowdoin
ID: 35053401
Do you want to delete IFS files with FTP?
Start out by signing on to the system with a FTP client.  The default windows one will do fine.  
Once there enter this command: LOCSITE NA 1  
This changes your "name format".  You can then use CD to change to the directory you wish.  Then DEL or MDEL to your heart's content.

Steve Bowdoin
0
 

Author Closing Comment

by:DCUnited
ID: 35056055
This deleted the files.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
This article was initially published on Monitis Blog, you can read it here . When it comes to deciding which approach to website performance monitoring is best for your business, unfortunately, like so many options in life . . . it depends. In t…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question