> What FTP package are you using?
> I know that with com.enterprisedt.net.ftp you can do:
> FTPClient.delete(String filename);
>
> Good luck,
I'm tring to implement something very simple for a project with my
friends.I want to use only Java package, without other libraries...In
Java this is a swear,but until now I got it...

This is part of the code to make you understand how I'm proceeding:
/* Creates a file in the path specified, in which
* ther's written the String what. */
public void writeFile(String username, String password,
String filePath, String what) {
try {
URL url = new
URL("ftp://"+username+":"+password+"@"+filePath);
URLConnection urlc = url.openConnection();
OutputStream os = urlc.getOutputStream();
PrintWriter out = new PrintWriter(os);
out.println(what);
out.close();
}
catch (MalformedURLException e) { System.out.println("Not
valid URL"); }
catch (IOException e) { System.out.println("Errore di I/O"); }
}