allow the namespace to be parameterised
fixes #1832 so we can delete an app easily with minimal work in the UI