code: public void removeFile(String filename) throws SftpStatusException,
  			SshException {
  		try {
  			UnsignedInteger32 requestId = nextRequestId();
  			Packet msg = createPacket();
  			msg.write(SSH_FXP_REMOVE);
  			msg.writeInt(requestId.longValue());
  			msg.writeString(filename, CHARSET_ENCODING);
  
  			sendMessage(msg);
  
  			getOKRequestStatus(requestId);
  		} catch (SshIOException ex) {
  			throw ex.getRealException();
  		} catch (IOException ex) {
  			throw new SshException(ex);
  		}
  		EventServiceImplementation.getInstance()
  				.fireEvent(
  						(new Event(this,
  								J2SSHEventCodes.EVENT_SFTP_FILE_DELETED, true))
  								.addAttribute(
  										J2SSHEventCodes.ATTRIBUTE_FILE_NAME,
  										filename));
  	}
docs: Remove a file.
  
  @param filename
  @throws SftpStatusException
  , SshException