delete functionality on form upload