Deletes a stored script.

        script_id:= id of stored script.

        ...
        status = pi.delete_script(sid)
        ...
183234
def delete_script(self, script_id):
        
        res = yield from self._pigpio_aio_command(_PI_CMD_PROCD, script_id, 0)
        return _u2i(res)
444917
def _delete(self, identifier=None):
        
        query = text("""
            DELETE FROM identifier_index
            WHERE identifier = :identifier;
        """)
        self.execute(query, identifier=identifier)
242793
def destroy
      @script_listing = Script::Listing.find(params[:listing_id])
      @script_url = @script_listing.urls.find(params[:id])
      @script_url.destroy
      redirect_to script_listing_urls_path, notice: 'Author was successfully destroyed.'
    end
1029193
def credential_delete_simulate(self, *ids):
        
        return self.raw_query("credential", "deleteSimulate", data={
            "credentials": [{"id": str(id)} for id in ids]
        })
593582
def delete(self):
        
        key = 'https://plex.tv/devices/%s.xml' % self.id
        self._server.query(key, self._server._session.delete)
534241
def delete(self, id):
        
        url = self._url('%s' % (id))
        return self.client.delete(url)
506319
def terminate(self):
        """"""
        try:
            self.id2sims.terminate()
        except:
            pass
        import glob
        for fname in glob.glob(self.fname + '*'):
            try:
                os.remove(fname)
                logger.info("deleted %s" % fname)
            except Exception, e:
                logger.warning("failed to delete %s: %s" % (fname, e))
        for val in self.__dict__.keys():
            try:
                delattr(self, val)
            except:
                pass
606154
def remove_session_id(self, sid):
        
        for uid in self.get('sid2uid', sid):
            self.remove('uid2sid', uid, sid)
        self.delete('sid2uid', sid)

        for sub in self.get('sid2sub', sid):
            self.remove('sub2sid', sub, sid)
        self.delete('sid2sub', sid)
179095
def stop_script(self, script_id):
        
        res = yield from self._pigpio_aio_command(_PI_CMD_PROCS, script_id, 0)
        return _u2i(res)
235401
def delete(self, db_session=None):
        
        db_session = get_db_session(db_session, self)
        db_session.delete(self)
272416
def remove(self, sid):
        
        self.dbcur.execute(SQL_SENSOR_DEL, (sid,))
        self.dbcur.execute(SQL_TMPO_DEL, (sid,))
101940
def remove_sid2uid(self, sid, uid):
        
        self.remove('uid2sid', uid, sid)
        self.remove('sid2uid', sid, uid)
770332
def store_script(self, script):
        
        if len(script):
            res = yield from self._pigpio_aio_command_ext(_PI_CMD_PROC, 0, 0,
                                                          len(script),
                                                          [script])
            return _u2i(res)
        else:
            return 0
964507
def action_delete(self, ids):
        """"""
        is_current = any(SessionActivity.is_current(sid_s=id_) for id_ in ids)
        if is_current:
            flash('You could not remove your current session', 'error')
            return
        for id_ in ids:
            delete_session(sid_s=id_)
        db.session.commit()
644849
def delete_boot_script(self):
        
        j, r = self.datacenter.request('DELETE', self.path + 
                '/metadata/user-script')
        r.raise_for_status()
        self.boot_script = None
679640
def copy_script(self, filename, id_=-1):
        
        self._copy(filename, id_=id_, file_type=SCRIPT_FILE_TYPE)
226480
def delete_ip4(self, id_ip):
        

        if not is_valid_int_param(id_ip):
            raise InvalidParameterError(u'Ipv4 identifier is invalid or was not informed.')

        url = 'ip4/delete/' + str(id_ip) + "/"
        code, xml = self.submit(None, 'DELETE', url)

        return self.response(code, xml)