Skip to main content
November 3, 2021
Question

Delete file from local file system

  • November 3, 2021
  • 8 replies
  • 0 views

Hi all,

We need to delete files from the Appian local file system on linux (Appian 20.2). We are running on premise. Is it possible?

Kind regards,

Jesus

    8 replies

    stefanhelzle0001
    Brainy
    November 3, 2021

    Difficult to answer without details. Are these files stored as Appian documents? Then there is a smart service "Delete Document".

    jesusa310Author
    November 3, 2021

    No, they are just excel files stored in the linux file system in the local Appian Server. I have now a workaround which consists on moving the file to Appian and deleting it there. It is not ideal but it does the job. I would prefer to be able to delete directly where it is, though.

    stefanhelzle0001
    Brainy
    November 3, 2021

    That seems weird to me. Where do these files come from?

    Why do you move these files into Appian and then delete them? What does this actually mean?

    Can you elaborate. I do not understand what this is about.

    csteward
    November 3, 2021

    Any reason that since you are on premise, you can't login / have a system admin login and delete the files at the server level?

    jesusa310Author
    November 3, 2021

    It would be better to do it automatically because the files are generated periodically. We could generate a cron job to do it as well. I was wondering if we could do it with Appian.

    csteward
    November 3, 2021

    Note Appian does not provide any functionality OOTB to interact with your server filesystem directly.  There is a plugin for on-prem use, Appian Collab / Filesystem Utilities, but I can't recall if this will allow you to delete the files or not.  Otherwise you will be looking to implement a cron job or periodic manual cleanup.

    As far as I know this plugin is the only way within Appian to interact with the filesystem, other than developing a custom plugin yourself.