REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Deleting Archive from Target

    General discussion
    2
    8
    725
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MikeyH
      last edited by

      Hi All,

      Sorry if this has been asked before, I have searched and didn't find anything.

      How do you delete archived (from TRND) data from the target device? Can it be deleted when you load a new configuration?

      Cheers

      Mike

      1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat
        last edited by

        Hi Mike,

        thanks for your question.
        There is only one way how to delete the archived data - just delete the files/folders on the target device.
        Following line will delete all the archived data:

        sudo rm -rf /rex/arc/
        

        Hope it helps.

        Regards,
        Tomas

        1 Reply Last reply Reply Quote 0
        • M
          MikeyH
          last edited by MikeyH

          Perfect, thank you Tomas. Can the command be run via a block?

          1 Reply Last reply Reply Quote 0
          • cechuratC
            cechurat
            last edited by

            Sure 😉 Have a look at function block called EPC - https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/EPC.html#x265-26400015

            For details on how to use the EPC function block, head to example on MP3 Playback: https://www.rexygen.com/example-projects/0304_External_Programs/0304-02_MP3_Playback/0304-02_MP3_Playback.html

            Cheers,
            Tomas

            1 Reply Last reply Reply Quote 0
            • M
              MikeyH
              last edited by

              Thank you Tomas,

              If I use the block to run the command to delete the archive. Can this be done while the process is running, will REX create a new file straight away? Or should I reboot once the file is deleted?

              Cheers

              Mike

              1 Reply Last reply Reply Quote 0
              • M
                MikeyH
                last edited by

                Update! I have tried this and it seems you can run the command while the execution is running. But for a new archive file to be created you need to reboot.

                1 Reply Last reply Reply Quote 0
                • cechuratC
                  cechurat
                  last edited by

                  Hi Mike,

                  thanks for update on this. The reboot isn't necessary. The file should be created also when:

                  • new write of archived items is performed to the disk with specified period
                  • swapping executives
                  • when AFLUSH is triggered - see: https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/AFLUSH.html

                  Let me know if it work for you.

                  Cheers,
                  Tomas

                  1 Reply Last reply Reply Quote 0
                  • M
                    MikeyH
                    last edited by MikeyH

                    Hi Tomas,

                    Thank you for the reply

                    Rebooting, swapping executive and AFLUSH work fine, new data being written to the disk in time period does not work though.

                    Cheers

                    Mike

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

                    There is also an outdated REXYGEN community forum.

                    Powered by NodeBB.