added option to delete uploaded files