Placed delete function into shared objects

Placed delete function into shared objects