1
00:00:00,520 --> 00:00:01,250
Hired Yvonne.

2
00:00:01,300 --> 00:00:08,450
So now it's time to create another MFX in order to delete a martial art object from our database.

3
00:00:08,470 --> 00:00:14,280
So just been here public voit the name of them if it is going to be delayed.

4
00:00:14,620 --> 00:00:32,520
Martial arts object martial arts object from database from database by ID by id and with a pair of practices

5
00:00:32,530 --> 00:00:33,210
here.

6
00:00:33,520 --> 00:00:37,580
And we need to press the idea which is of type integer so ain't it.

7
00:00:37,720 --> 00:00:41,130
So let's open and close this method by using these curly braces.

8
00:00:42,000 --> 00:00:48,780
So the first thing that we need to do here is to get our reference to the school like database rightabout

9
00:00:48,790 --> 00:00:55,900
database so just live hit a school like database and the name is going to be database assignment operator.

10
00:00:56,130 --> 00:01:00,170
And here just typing get rightabout database semicolon.

11
00:01:00,390 --> 00:01:07,170
Now it's time to create an excuse to comment in order to delete a martial art object from the school

12
00:01:07,170 --> 00:01:07,990
like database.

13
00:01:08,130 --> 00:01:08,940
So the stuff in here.

14
00:01:08,950 --> 00:01:09,610
Strange.

15
00:01:09,810 --> 00:01:14,970
This is the type of this valuable the name of this variable is delete.

16
00:01:15,090 --> 00:01:17,310
Martial art is martial art.

17
00:01:19,430 --> 00:01:21,030
Q L comment.

18
00:01:22,380 --> 00:01:25,960
Assignment operator just put two quotes here.

19
00:01:27,340 --> 00:01:28,270
And just typing here.

20
00:01:28,300 --> 00:01:33,930
Delete from and here put space plus.

21
00:01:33,970 --> 00:01:39,460
Now let's refer to our martial arts table and then put another plus operator here.

22
00:01:39,550 --> 00:01:43,750
Let's create a new line and then put two quotes here.

23
00:01:43,870 --> 00:01:53,190
Just type in here and then put a space where space plus and then refer to the tree ID.

24
00:01:53,260 --> 00:02:03,500
So actually the key right the key id key id key id key and then put a plus and then Putu quotes here.

25
00:02:03,540 --> 00:02:13,020
Space is actually equal operator and N plus and the first is ID an argument semicolon.

26
00:02:13,240 --> 00:02:24,100
So here it says delete from martial arts table where Id key the ID key is equal to this ID.

27
00:02:24,260 --> 00:02:30,200
So if the pass the ID of the Marshlack object that you want to delete to the Smurfette it's going gonna

28
00:02:30,260 --> 00:02:34,500
delete that specific martial that object that is related to that specific ID.

29
00:02:34,790 --> 00:02:41,630
OK because because of this stupid comment like it is for a martial arts table where Id key is equal

30
00:02:41,630 --> 00:02:43,620
to ID thats it.

31
00:02:43,670 --> 00:02:51,500
And here again we need to actually refer to our database so database that executes as well and then

32
00:02:51,500 --> 00:02:53,080
we just need to pass this.

33
00:02:53,250 --> 00:02:58,700
This is martial art as you l.com And finally you need to close the database so databased that close.

