1 #include "../burp.h"
2 #include "../asfd.h"
3 #include "../cmd.h"
4 #include "../log.h"
5 #include "delete.h"
6 
do_delete_client(struct asfd * asfd,struct conf ** confs)7 int do_delete_client(struct asfd *asfd, struct conf **confs)
8 {
9 	char msg[128]="";
10 	const char *backup=get_string(confs[OPT_BACKUP]);
11 	snprintf(msg, sizeof(msg), "Delete %s", backup?backup:"");
12 	if(asfd->write_str(asfd, CMD_GEN, msg)
13 	  || asfd_read_expect(asfd, CMD_GEN, "ok"))
14 		return -1;
15 	logp("Deletion in progress\n");
16 	return 0;
17 }
18