Deleting the relationship under a where clause

Hi every one

match(c)-[x:InteractsWith]-(p) where p.poster is null delete x

i have executed the above query expecting only the relationship with the clause will be deleted but turned out it deleted all the relationship, any idea if i can undo that?
thanks in advance

the possible reason it deleted all the relationship is i forgot to add the arrows (direction) so i just want to know if there is any way we can undo it?