Lightning / uiRecordApi for Delete

Our next LWC is named deleteAccount, and is our largest LWC because it uses the uiRecordApi and other Lightning resources. We added deleteAccount to an existing Lightning Record Page.

When a user clicks on the Delete button in the component, the account record is deleted and the user is re-directed to the default account page. On that page a success message is shown.

What's Next?

The third and final part in our Lightning Web Components series will be a complete, customer-ready Lightning App made with several LWCs working together and exchanging data.

Since we inroduced the uiRecordApi to use its deleteRecord function, our next example will use its other methods createRecord and updateRecord.

Stay Tuned!

 

Vincent Harriott
Software Consultant

VH Enterprises
vharriott@vhenterprises.com