added collection delete to clear_data