Delete a device's attachment.

        :param id: Device ID as an int.
        :param attid: Attachment ID as an int.
547529
def delete(self, id, attid): # pylint: disable=invalid-name,redefined-builtin
        
        return self.service.edit(self._base(id), attid)
1257357
def delete(self, device_id: int):
        
        device = self._get_or_abort(device_id)
        session.delete(device)
        session.commit()
        return '', 204
1085815
def cancel_id(cls, id):
        
        conn = Qubole.agent()
        data = {"status": "kill"}
        return conn.put(cls.element_path(id), data)
534241
def delete(self, id):
        
        url = self._url('%s' % (id))
        return self.client.delete(url)
338042
def destroy(self, id):
        
        path = '{}/destroy'.format(id)
        url = utils.urljoin(self.url, path)
        response = self.session.post(url)
        return response.ok
19942
def delete_event(self, id, **data):
        
        
        return self.delete("/events/{0}/".format(id), data=data)
843992
def put_attachment(self, attachmentid, attachment_update):
        ''''''
        assert type(attachment_update) is DotDict
        if (not 'ids' in attachment_update):
            attachment_update.ids = [attachmentid]

        return self._put('bug/attachment/{attachmentid}'.format(attachmentid=attachmentid),
                json.dumps(attachment_update))
1220602
def delete(self, ids):
        
        url = build_uri_with_ids('api/v4/as/%s/', ids)
        return super(ApiV4As, self).delete(url)
905957
def id(self, value):
        
        if value == self._defaults['ai.device.id'] and 'ai.device.id' in self._values:
            del self._values['ai.device.id']
        else:
            self._values['ai.device.id'] = value
244323
def DbDeleteDeviceProperty(self, argin):
        
        self._log.debug("In DbDeleteDeviceProperty()")
        dev_name = argin[0]
        for prop_name in argin[1:]:
            self.db.delete_device_property(dev_name, prop_name)
387
def delete(self, id):
        ''''''
        if not self._item_path:
            raise AttributeError('delete is not available for %s' % self._item_name)
        target = self._item_path % id
        self._redmine.delete(target)
        return None
881996
def detach(doc_id, doc_rev, attachment_name=nil)

      if attachment_name.nil?
        attachment_name = doc_rev
        doc_rev = doc_id['_rev']
        doc_id = doc_id['_id']
      end

      attachment_name = attachment_name.gsub(/\//, '%2F')

      path = adjust("#{doc_id}/#{attachment_name}?rev=#{doc_rev}")

      @http.delete(path)
    end
525823
def delete_firmware_manifest(self, manifest_id):
        
        api = self._get_api(update_service.DefaultApi)
        return api.firmware_manifest_destroy(manifest_id)
444169
public void remove(Featurable featurable, Integer id)
    {
        for (final Class<?> type : featurable.getClass().getInterfaces())
        {
            remove(type, featurable);
        }

        for (final Class<? extends Feature> feature : featurable.getFeaturesType())
        {
            final Feature object = featurable.getFeature(feature);
            remove(feature, object);
            for (final Class<?> other : UtilReflection.getInterfaces(feature, Feature.class))
            {
                remove(other, object);
            }

        }
        remove(featurable.getClass(), featurable);
        removeSuperClass(featurable, featurable.getClass());

        featurables.remove(id);
    }
248469
def off(self, dev_id):
        
        path = 'device/off'
        payload = {'id': dev_id}
        return self.rachio.put(path, payload)
216355
def delete(self, ids):
        
        url = build_uri_with_ids('api/v3/ipv6/%s/', ids)
        return super(ApiIPv6, self).delete(url)
1284524
def delete(self, ids):
        
        url = build_uri_with_ids('api/v4/ipv4/%s/', ids)

        return super(ApiV4IPv4, self).delete(url)