public bool deleteImage(string pImageId) { ImageBO _oImage = new ImageBO(pImageId); string[] _type = _oImage.Path.Split('.'); string _path = _oImage.ImageID + "." + _type[_type.Length - 1]; bool _del = _oImage.delete(); if (_del) { try { File.Move(GlobalVariables.goImageServer + @"\" + _path, GlobalVariables.goRecycleBin + @"\" + _path); } catch { } } return _del; }