Skip to main content
Released

Add Delete option for File Copy Writer

Related products:Integrations
  • January 16, 2018
  • 7 replies
  • 117 views

Forum|alt.badge.img+1

Currently it is not supported. However, I do think it would be a nice (non-scripting) alternative for existing methods like the ones that are described in this post:

https://knowledge.safe.com/questions/2948/file-copy-delete.html

7 replies

revesz
Contributor
Forum|alt.badge.img+21
  • Contributor
  • January 16, 2018

Yes, the DELETE in File Operation beside MOVE and COPY in File Copy writer would be really handy for not hardcore geek FME users.

There are non-scripting workarounds with with the MOVE operation.

- Linux (obvious one): set filecopy_dest_dataset attribute to /dev/null

- Windows (less known one): set filecopy_dest_filename to nul (single l). It is advised to set the filecopy_dest_dataset to a folder on a local drive as UNC path may cause problem.


sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • January 17, 2018
Ah - didnt know this Windows trick - thanks! Have been using a pythonscript for this!

 

 


sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • January 15, 2020

Meanwhile - created a FileDeleter (not using python, but the FeatureWriter instead) - to make it easier for people to delete files: https://hub.safe.com/publishers/sigtill/transformers/filedeleter


erooen
Contributor
Forum|alt.badge.img+2
  • Contributor
  • May 24, 2023

This custom transformer moves the folder, but does not delete it.


LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • February 21, 2025
OpenGathering Interest

LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • February 21, 2025
Gathering InterestIn Development

LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • March 7, 2025
In DevelopmentReleased