delete board function