func DeleteCliente(w http.ResponseWriter, r *http.Request) {
	id := chi.URLParam(r, "id") //conseguimos el ID pasado por URL
	fmt.Printf("%s", id)
	query := fmt.Sprintf(`
	{
		"delete": [
			{
				"uid": "%s"
			}
		]
	}
	`, id)
	ConsultaDataBase(query, func(data []byte) {
		w.Header().Set("Content-Type", "application/json")
		if data != nil {
			//ok
			w.Write([]byte(`{"result":"ok"}`))
		} else {
			//bad
			w.Write([]byte(`{"result":"error"}`))
		}
	})
}
// DeleteCliente remove a spesific post
DeleteCliente remove a spesific post
// DeleteCliente remove a spesific post
func DeleteCliente(w http.ResponseWriter, r *http.Request) {
	id := chi.URLParam(r, "id") 
	fmt.Printf("%s", id)
	query := fmt.Sprintf(`
	{
		"delete": [
			{
				"uid": "%s"
			}
		]
	}
	`, id)
	ConsultaDataBase(query, func(data []byte) {
		w.Header().Set("Content-Type", "application/json")
		if data != nil {
			w.Write([]byte(`{"result":"ok"}`))
		} else {
			w.Write([]byte(`{"result":"error"}`))
		}
	})
}
func DeleteCliente ( w http . ResponseWriter , r * http . Request ) { id := chi . URLParam ( r , " " ) fmt . Printf ( " " , id ) query := fmt . Sprintf ( `
	{
		"delete": [
			{
				"uid": "%s"
			}
		]
	}
	` , id ) ConsultaDataBase ( query , func ( data [ ] byte ) { w . Header ( ) . Set ( " " , " " ) if data != nil { w . Write ( [ ] byte ( `{"result":"ok"}` ) ) } else { w . Write ( [ ] byte ( `{"result":"error"}` ) ) } } ) }
DeleteCliente remove a spesific post
DeleteCliente remove a spesific post
//conseguimos el ID pasado por URL //ok //bad