Reset all data in one or several feeds

Hi.

For a few days that I've searched for this with no valid answers...

What is the best way to clean/clear the entire date in one feed?

I've seen some referenced about deleting the feed, but I don't think it is a good way because we have to remake the rules. There should an icon like the trash (maybe a Z from zero) can that would do that.

Cheers.

CidiRome's picture

Re: Reset all data in one or several feeds

Hi.

 

For now I created empty dat and meta files (with the same configuration) that I replace on the filesystem when I want to reset.

I don't know if it works correctly, But I don't want to delete the feed and recreate it, there are two problems on this:
- Reconfigure the places where the feed is used;
- Put the feeds on the processes list is hard when you have to click the up arrow 50 times to put it in place, risking accidentaly change other's order.

Best Regards.

TrystanLea's picture

Re: Reset all data in one or several feeds

Hello CidiRome, yes just clearing the .dat files will work. No need to do anything to the .meta files.

On linux/raspberrypi you can do this by ssh'ing into the raspberrypi, then using the truncate command.
This will keep the original ownership settings:

cd /home/pi/data/phpfina
sudo truncate feedid.dat --size=0

 

Edit - inserted missing equal sign - BT

CidiRome's picture

Re: Reset all data in one or several feeds

Thank you for the answer, it is usefull as I think my method was not working (not sure)...

Is there a method to correct bogus data?

I want to correct data and noticed that editrealtime doesn't seem to work to delete or correct the errors.

Is there a way?

Cheers.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.