How can i delete all non pdf files from a folder?

How can i delete all non pdf files from a folder?

@Andrei_Croitoru

Use an Assign activity and write as

strarrFiles = Directory.GetFiles(“FolderPath”)

Now use For Each activity and inside that use If condition as below

path.GetFileNameWithExtension(item.ToString).EndsWith(“pdf”)

Then-> Nothing
Else-> use Delete activity and pass the FileName as Item

Hope this will help you

Thanks