Delete a Genre

Learn how to implement a controller that deletes the existing data from the database.

Setting up the controller

When a genre is no longer necessary, we might stop posting movies that fit into that category. A delete feature would be useful in these circumstances. We start by making the basic delete controller to accomplish this task. The genre_id of the genre that needs to be changed or accessed is needed for this controller, just like it is for the read and edit ones. ...

Access this course and 1400+ top-rated courses and projects.