Delete vs Delete File & Delete Folder Activity

I could see 2 activities to delete a file in System Package.
What is the difference between these 2 activities - Delete & Delete File ?
Not much information available in Docs.
The only difference I could see is that Delete activity throws an error if file does not exists but Delete File activity doesn’t throw any errors.

Hey,
as the name says, ‘delete’ can delete files or folders, but ‘delete files’ can only one file :slight_smile:

1 Like

Delete
Deletes the file or folder in the specified location. If a folder that contains multiple files or folders is specified, they are all deleted.

Delete File

Deletes a specified file.

Regards,
Arivu

1 Like

Hi @pikorpa / @arivu96

yeah, I got it. But I don’t see a real difference.

Delete activity can do both Delete File and Delete Folder activities. All these activities only accept String input.

1 Like

Hi @Chimbu ,
The only difference if folder and file…

Delete file activity can’t delete folder.

Delete activity will Delete folder as well as file

Regards,
Arivu

Both are deleted. One files and folders and the other one file

@Chimbu you are right, there is not a major difference between these activities. We tried to simplify things too much and have dedicated activities for files and folders.

There is no harm though to have these activities available.

1 Like

To add further confusion, there’s also a 3rd activity you mentioned in the title of this thread, but you didn’t mention in the comments themselves: Delete Folder.

In my opinion, having THREE activities for the same when it could be done with only ONE of them only adds confusion; in fact, I had to Google to confirm that I wasn’t doing anything wrong when trying to delete a folder. You should either keep the functionality in two separated activities (“Delete file” and “Delete folder”) or everything in a single one (“Delete”). I don’t see a use case where you could need all three.