import bpy
# Set the name of your video strip
video_strip_name = "maserati red fron dof high.001"
# Get the video sequence editor
vse = bpy.context.scene.sequence_editor
# Find the video strip by name
strip = vse.sequences.get(video_strip_name)
start = int(strip.frame_start)
duration = int(strip.frame_duration)
end = int(start + duration)
print("start", start)
print("end", end)
print("duration", duration)
counter = 0
for (cut) in range(start, end):
if cut % 5 == 0:
counter += 1
print('cut', end-cut)
new_strip = strip.split(frame=end-cut, split_method='HARD')
if counter % 2 == 1 and new_strip != None:
bpy.context.scene.sequence_editor.sequences.remove(new_strip)
if counter % 2 == 1 and new_strip == None:
bpy.context.scene.sequence_editor.sequences.remove(strip)
Note: you should be honest - not only here, that makes things easier. And i am pretty sure that's why nobody answered you - and that's why you did get 3 downvotes (until now). Nevertheless - i believe people can learn from mistakes - that's why i do answer.
result demo:
https://github.com/luckychris/blender_gifs/blob/main/delete%20partial%20strips%20demo.gif
Note2: once there was a great feature in SE: gif upload. This enriched this community a lot because you could show e.g. working examples or results. Unfortunately SE "killed" that by their latest "upgrade" which i think is more a downgrade. But that's just my personal opinion.