1
00:00:01,450 --> 00:00:06,610
In a previous lectures we have learned how to create new files in terminal.

2
00:00:06,610 --> 00:00:10,730
What is also good to know is how to remove them.

3
00:00:10,990 --> 00:00:23,530
So if I open terminal and list output of current directory I can see here a file article.

4
00:00:23,590 --> 00:00:25,490
Let's say I want to remove it.

5
00:00:25,870 --> 00:00:28,780
So just die are and followed by path to file.

6
00:00:28,780 --> 00:00:36,460
I want to remove in my case it is enough to use just name of a file called article as currently I am

7
00:00:36,460 --> 00:00:36,940
inside.

8
00:00:36,940 --> 00:00:40,200
Directory where the file was located.

9
00:00:40,270 --> 00:00:45,450
Now I will show you how to remove the let's say file.

10
00:00:45,460 --> 00:00:53,630
Sorry does BATF using absolute path just type r m followed by the absolute file.

11
00:00:53,980 --> 00:00:56,950
In my case it is home.

12
00:00:57,110 --> 00:01:01,810
Richard sorry dot BDA

13
00:01:09,180 --> 00:01:14,790
and again in file explorer on the left side I see that file was truly removed.

14
00:01:14,820 --> 00:01:15,140
Good.

15
00:01:16,230 --> 00:01:20,050
But now let's delete some folder for 4 dead.

16
00:01:20,070 --> 00:01:23,250
I will create a new folder called needed me

17
00:01:37,060 --> 00:01:39,270
and now I can dive in terminal

18
00:01:43,370 --> 00:01:52,180
r m needed me but I have some error message cannot remove delete me is a directory.

19
00:01:52,180 --> 00:02:01,000
In such cases I can use command I am there which will remove empty folder so item data is for removing

20
00:02:01,000 --> 00:02:04,190
folder but only empty folders.

21
00:02:04,480 --> 00:02:13,300
Here is also good to mention that I am command can remove also directories but we need to some parameter.

22
00:02:13,690 --> 00:02:17,110
Firstly create again folder called delete me

23
00:02:20,110 --> 00:02:23,670
and try again I am.

24
00:02:23,730 --> 00:02:24,480
Come on.

25
00:02:25,600 --> 00:02:29,700
You'll see that we have no success and one node here.

26
00:02:29,920 --> 00:02:36,630
If you are doing cooperation with folders it doesn't matter if there is slash after its name or not.

27
00:02:36,880 --> 00:02:44,590
Usually if you type first letters of folders name and put top keyboard it will fill the whole name with

28
00:02:44,590 --> 00:02:48,430
slash at the end.

29
00:02:48,490 --> 00:02:50,320
So let's check manual.

30
00:02:52,960 --> 00:03:03,540
And here I see that by me there are remove directories and their contents recursively.

31
00:03:03,790 --> 00:03:04,870
So let's test it

32
00:03:07,630 --> 00:03:12,370
are m with parameter R needed me

33
00:03:15,980 --> 00:03:17,740
and it is removed.

34
00:03:17,750 --> 00:03:18,380
Well done.

35
00:03:18,590 --> 00:03:23,110
We can also reach it in terminal using ask on that.

36
00:03:23,160 --> 00:03:26,640
The father did it to me was really deleted.
