Playing Next Lesson In
seconds

Let's Learn AdonisJS 6 #11.10

Allowing Admins to Delete Movies and their Relationships

In This Lesson

We'll learn how we can safely delete movies and their relationships. We'll discuss how we need to consider foreign key constraints, and what to do when our deletes aren't set to cascade.

Created by
@tomgobich
Published

🕰️ Chapters
00:00 - Adding the Delete Form and Button
01:48 - Defining our MoviesController Destroy Handler
02:30 - Considering Relationships when Deleting
04:30 - How To Delete Relationships when the Delete Does NOT Cascade
06:20 - Testing Out our Deletion

Join the Discussion 2 comments

Create a free account to join in on the discussion
  1. @iphonegeek-me

    _method is not documented btw

    1
    1. Responding to iphonegeek-me
      @tomgobich
      0