You can use Delete activity by leveraging wildcard path :
Since 1 file type can be passed at a time, you can create a parameter with all wildcard values semicolon seperated like .xml;.csv and use foreach activity with expression as split(parameter,';') and iterate the wildcard in Delete activity