added delete namespace rest function