Delete client function