Run the following command, replacing my-namespace with the name of your namespace to delete. Solution found on Stack Overflow.