How do i select all in the video sequencer in python scripting

I want to select whatever I have in my video sequencer and delete it and am writing a python script for it. For stuff like this I make use of the info panel scripting tab, but it doesn’t show what I need to use for selecting all video sequences it does however say how to delete (ie, bpy.ops.sequencer.delete())

What is the python code to select all in video sequencer?

On trying a little more I found one way by selecting all by effect type and then you can delete. But if your video sequences have some effects it does not work

You can find operators you’re triggering from keyboard in Preferences - Keymap.

Or see Python tooltips on the buttons.

You can also do it without operators by accessing sequences directly:

1 Like

Ooh thats really helpfull thanks allot!