Delete message function created