Fixed delete button on namaespace summary screen.

Delete namespace button on namespace summary screen was throwing an error, fixed code to delete correct record.