B2B Integration

 View Only
Expand all | Collapse all

Housekeeping, remove the file from the filesystem once the retention period expires

  • 1.  Housekeeping, remove the file from the filesystem once the retention period expires

    Posted Thu December 07, 2023 06:55 AM

    Hi Team,

    Greetings.

    Is there any possibility to delete the files which are stored in the filesystem as per time period scheduled. We have configured SFTP server adapter with payload repository as filesystem and in the next step in place of base directory we gave the filesystem path. Now we require retention period means the files that are stored on filesystem needs to be deleted for a particular time period . Kindly anyone provide the solution for this scenario.


    Best Regards,
    Laxman



    ------------------------------
    Laxman Porandla
    ------------------------------


  • 2.  RE: Housekeeping, remove the file from the filesystem once the retention period expires

    Posted Wed January 17, 2024 02:56 PM

    Is this in a global mailbox environment or normal B2B?

    These files aren't going into a trading partner/mailbox and going straight to a filesystem?  If they're going to a mailbox that uses a filesystem for the payload repository, I would think the Mailbox Delete Service should work.  We currently use two delete services, one will delete all non-extractable files after 4 days, and the second will delete all files (extractable or not) after 14 days.

    If your files are going directly to a filesystem, we use various cron jobs (we're on CentOS) to manage file cleanup within our filesystems.

    Hopefully this helps.



    ------------------------------
    Peter Milakovich
    ------------------------------



  • 3.  RE: Housekeeping, remove the file from the filesystem once the retention period expires

    Posted Wed January 17, 2024 11:50 PM

    Peter, 

    Thanks for the information. Here we are using filesystem as payload repository in SFTP Server Adapter. The files which the end users uploads will directly lands into the filesytem. The files which are present in the filesystem should be deleted as per scheduled time period.

    FYI we are using B2b only. Do we have any Service / Adapter in B2B which will delete the files in the file system.

    Regards,

    Laxman



    ------------------------------
    Laxman Porandla
    ------------------------------



  • 4.  RE: Housekeeping, remove the file from the filesystem once the retention period expires

    Posted Thu January 18, 2024 06:16 AM

    Nothing that would work out-of-box that I am aware of, you'd probably have to customize something, possibly using the File System Adapter and building off of it.  There are probably simpler methods of doing it, like a cron job in linux or scheduled task in windows.



    ------------------------------
    Peter Milakovich
    ------------------------------