“cmd.unpick” deletes the special “pk” atom selections (pk1, pk2, etc.) used in atom picking and molecular editing.
cmd.unpick()
def unpick():
unpick | cmd.edit | api