Added wrapper for deleteObject function