Delete repeater

The Page
Repeater Elements (#repeater1)
Product Name: #text1
Product Color: #text2
Quantity: #text3​​Delete Button: #deleteThe Database
Create a database: Products (dataset1)​Recommended fields:
Product: name
Customization : color
Quantity: quantity

THE CODE
Page Code
export function delete_click(event) {$w('#repeater1').data=[]}