Summary

In this chapter, we have learned how to delete database records using Mongoose methods. We then applied this knowledge to our project and added the ability for a user to delete their profile.

This brings us to the end of the data interaction CRUD section, so you should now have a good idea of how to do most things you want to with data in your applications.

Coming up in the next chapter, we're going to look at validation and see how Mongoose can help us maintain data integrity.

Get Mongoose for Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.