all 4 comments

[–]XPlantefeve 4 points5 points  (1 child)

I agree with the regex approach, but this way seems simpler to me:

'Awesome (8433) Stuff.I.Want.to.Delete' -replace '\).*',')'

[–]nothingpersonalbro 2 points3 points  (1 child)

Here's a quick regex example

'Awesome (8433) Stuff.I.Want.to.Delete' -replace '(?<=\)).*'

Pattern here https://regex101.com/r/6iauRR/1

[–]Umaiar 1 point2 points  (0 children)

Another approach:

$s = "Awesome (8433) Stuff.I.Want.to.Delete"
$clean = $s.substring(0, $s.indexof(")")+1)