Code Segment: customSearch.js

customSearch.js -> deleteAccount()

In our JavaScript segment we can see the deleteAccount() function initiated from the user (HTML). Inside of this function is the call to deleteRecord() which we imported from the lightning/uiRecordApi module.

Now we’ve done the ( D ) (Delete) in our CRUD application, and have completed our tutorial.

Second CRUD Summary