Delete File in Logical File System

Contents


1   Description

This instruction 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. In the ECLI, special characters in filenames, such as +, appear as ??. For more information, refer to Interwork Description Ericsson Command-Line Interface.

2   Procedure

2.1   Delete File in Logical File System

Prerequisites

Steps

  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 if the file does not exist or is in use.

  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.



Copyright

© Ericsson AB 2016, 2017. All rights reserved. No part of this document may be reproduced in any form without the written permission of the copyright owner.

Disclaimer

The contents of this document are subject to revision without notice due to continued progress in methodology, design and manufacturing. Ericsson shall have no liability for any error or damage of any kind resulting from the use of this document.

Trademark List
All trademarks mentioned herein are the property of their respective owners. These are shown in the document Trademark Information.

    Delete File in Logical File System