Added new Delete method and added else condition to create message method.