Added method to delete file.