public function deleteMeta($key, $value = false)
    {
        if ($value) {
            $meta = $this->getMeta($key, null, true);

            if ($meta == null) {
                return false;
            }

            $obj = $this->getEditableItem($meta, $value);

            return $obj !== false ? $obj->delete() : false;

        } else {
            return $this->meta()->where('key', $key)->delete();
        }
    }
public function deleteMeta($key, $value = false)
    {
        if ($value) {
            $meta = $this->getMeta($key, null, true);

            if ($meta == null) {
                return false;
            }

            $obj = $this->getEditableItem($meta, $value);

            return $obj !== false ? $obj->delete() : false;

        } else {
            return $this->meta()->where('key', $key)->delete();
        }
    }
public function deleteMeta ( $ key , $ value = false ) { if ( $ value ) { $ meta = $ this -> getMeta ( $ key , null , true ) ; if ( $ meta == null ) { return false ; } $ obj = $ this -> getEditableItem ( $ meta , $ value ) ; return $ obj !== false ? $ obj -> delete ( ) : false ; } else { return $ this -> meta ( ) -> where ( 'key' , $ key ) -> delete ( ) ; } }
Deletes meta data

@param $key
@param bool $value
@return mixed
Deletes meta data