How to delete Config file? Command

For some reason i cant delete a m3u playlist in xupnpd which i preseted before.

Which command can help me in ssh to delete this m3u Playlist? Maybe the hole config file deleting....

Reinstalling xupnpd did not the job for me . The playlist is still there....

Hope someone can help me . Thanks in advance.

find /etc -iname "*filename*"
grep -i -r -l "text" /etc
rm /path/to/file

could you please help me?

i want just copy paste the command.

I need to delete this m3u because it has adult content and i dont want my childrens to see it.

https://openwrt.org/packages/pkgdata/xupnpd

Best Regards Tunay

cd /etc/xupnpd/
ls -ltr

then use rm command to delete the file/s

eg

rm myfile.txt

i get Connecting to 192.168.1.1 port 22, please wait...

login as: 
root@192.168.1.1's password: 


BusyBox v1.28.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.1, r7258-5eb055306f
 -----------------------------------------------------
cd /etc/xupnpd/ ls -ltr
rm: can't remove 'myfile.txt': No such file or directory

this did not do the job for me.

Any other ideas?

"myfile.txt" is an example name. It was used because you did not specify the name of the file you need to delete.

You will need the exact name of the file you need to delete to remove it from the command line.

How did the file get on your router in the first place? If you used an app to do that, perhaps that app can remove it as well.

the m3u playlist is called:

tv_channels_gokhankaraman_plus-1.m3u

so i need to type

rm tv_channels_gokhankaraman_plus

is this the command that will work?

No, you type:

You have to refer to the file by its full name, a computer doesn't guess.

To find the full path (name) of the file, you can run

find / -name 'tv_channels_gokhankaraman_plus-1.m3u'

could somone create me the command please ? i dont no whats wrong. my children want later watch tv and this adult channels are there i cant delet them.... =/

this is what i got ... i think i got ghe path... whats the next step?

Connecting to 192.168.1.1 port 22, please wait...
login as: 
root@192.168.1.1's password: 


BusyBox v1.28.3 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 18.06.1, r7258-5eb055306f
 -----------------------------------------------------
find / -name 'tv_channels_gokhankaraman_plus-1.m3u'
/overlay/upper/usr/share/xupnpd/playlists/tv_channels_gokhankaraman_plus-1.m3u
/usr/share/xupnpd/playlists/tv_channels_gokhankaraman_plus-1.m3u

wow it worked with

find / -name 'tv_channels_gokhankaraman_plus-1.m3u'

rm /usr/share/xupnpd/playlists/tv_channels_gokhankaraman_plus-1.m3u

I freaking love openwrt but somtimes hate it too.

you guys are awesome!!!!!! many thanksssss

Without going into a lot of explanation,

/usr/share/xupnpd/playlists/tv_channels_gokhankaraman_plus-1.m3u

is the file, as far as most users are concerned. Most users should never change anything on /overlay/ directly.

rm /usr/share/xupnpd/playlists/tv_channels_gokhankaraman_plus-1.m3u

should remove that file from your router.

Do i have keep attention on putting m3u onto that folder ? Does it have any performance issue ... i guess i only have 128mb internal space.

some m3u are very big for example 12mb

Many people consider it wiser to put their media / file servers on a device other than their router for security, performance, and reliability reasons.

Yes, if you fill up your /overlay/ partition, you will no longer be able to change anything on your router, including its configuration.I don't know what router you have, but you likely have much less than that for new data.

df -h /overlay

should give you the total size, how much you've used, and how much is left.

Is it possible to route the path of my m3u file to my sticked usb thumb drive?

again you guys are awesome . So great community here .

Yes, it is possible. Mount the stick with mount command and adjust your path to m3u file in config - usually in /etc .

could you help me to create the Right path….

Feel free to make a new post for the USB drive setup.

is it not better to stay here…. Opening new will mess up Forum