added method delete() to figure