delete share function