[MIE-1633] Updated delete endpoints on objectController with the correct status