Clear PVR & Live TV data from ssh

my questions is if there is a way over ssh to delete the data from PVR & Live TV.
The reason is i download my xml file in from server and need to run the data delete to get epg working.

Whilst this isn’t a straight forward answer, perhaps you can find out for yourself by turning on debug logging.

Press clear and see what action is taken by kodi. Then it is a case of mapping that action in a script / remote or running it yourself in terminal.

As far as I know there is no json-rpc that can do this yet, therefore above action is the way to go.

Thanks for your reply, i will figure it out later and give feedback when I am home from work.