Delete File in Logical File System

Contents

1Introduction
1.1Prerequisites

2

Procedure

1   Introduction

This document describes how to delete a file in the logical file system within an Ericsson Command-Line Interface (ECLI) session. In this case, the user does not have to start a separate SSH File Transfer Protocol (SFTP) session.

1.1   Prerequisites

This section describes the prerequisites, which must be fulfilled before using the procedure.

1.1.1   Conditions

The following conditions must apply:

2   Procedure

To delete a file in the logical file system:

  1. Navigate to the FileGroup MO that represents the folder containing the file, for example:

    >dn ManagedElement=NODE06ST,SystemFunctions=1,FileM=1,LogicalFs=1,FileGroup=AlarmLogs

  2. Enter Config mode:

    (FileGroup=AlarmLogs)>config

  3. Start the delete operation on the file, for example:

    (config-FileGroup=AlarmLogs)>removeFile FmAlarmLog_20141027_191107_20141028_184309.log

    The system returns true after a successful deletion operation. The system returns false when the operation fails. The operation fails when the file does not exist or is in use.

    Note:  
    Special characters, such as + in filenames, appear as ?? in the ECLI. For more information, refer to Interwork Description Ericsson Command-Line Interface.

  4. Commit the deletion:

    (config-FileGroup=AlarmLogs)>commit

  5. Verify that the file has been deleted:

    (FileGroup=AlarmLogs)>show

    The following is an example output:

    FileGroup=AlarmLogs
       internalHousekeeping=false
       files="FmAlarmLog.cfg"
          fileType="cfg"
          modificationTime="2014-11-20T13:33:57"
          size=108
       files="FmAlarmLog_20141025_210916.cfg"
          fileType="cfg"
          modificationTime="2014-10-25T21:09:16"
          size=108
       files="FmAlarmLog_20141025_210925.log"
          fileType="log"
          modificationTime="2014-10-25T21:09:27"
          size=0
       files="FmAlarmLog_20141025_211150_20141025_212046.log"
          fileType="log"
          modificationTime="2014-10-25T21:20:46"
          size=7168
       files="FmAlarmLog_20141025_212046.cfg"
          fileType="cfg"
          modificationTime="2014-10-25T21:20:46"
          size=108
       files="FmAlarmLog_20141027_175033_20141027_175714.log"
          fileType="log"
          modificationTime="2014-10-27T17:57:14"
          size=2048
       files="FmAlarmLog_20141027_175714.cfg"
          fileType="cfg"
          modificationTime="2014-10-27T17:57:14"
          size=108
       files="FmAlarmLog_20141027_180112_20141027_185409.log"
          fileType="log"
          modificationTime="2014-10-27T18:54:09"
          size=4096
       files="FmAlarmLog_20141027_185409.cfg"
          fileType="cfg"
          modificationTime="2014-10-27T18:54:09"
          size=108
       files="FmAlarmLog_20141028_184309.cfg"
          fileType="cfg"
          modificationTime="2014-10-28T18:43:09"
          size=108
       files="FmAlarmLog_20141120_133357.log"
          fileType="log"
          modificationTime="2014-11-20T14:34:10"
          size=5120

    File files=FmAlarmLog_20141027_191107_20141028_184309.log does not exist any more.