Fixed delete button on namespace summary screen.

Delete namespace button on namespace summary screen was throwing an error, fixed code to delete correct record.

@dclarizio please review/test