Removes specified torrent from storage.

@param torrentHash specified torrent hash
773478
public void removeTorrent(String torrentHash) {
    logger.debug("Stopping seeding " + torrentHash);
    final Pair<SharedTorrent, LoadedTorrent> torrents = torrentsStorage.remove(torrentHash);

    SharedTorrent torrent = torrents.first();
    if (torrent != null) {
      torrent.setClientState(ClientState.DONE);
      torrent.closeFully();
    }
    List<SharingPeer> peers = getPeersForTorrent(torrentHash);
    for (SharingPeer peer : peers) {
      peer.unbind(true);
    }
    sendStopEvent(torrents.second(), torrentHash);
  }
330819
public TorrentHandle findTorrent(Sha1Hash infoHash) {
        torrent_handle th = s.find_torrent(infoHash.swig());

        return th != null && th.is_valid() ? new TorrentHandle(th) : null;
    }
895421
public static boolean removeFromCache(String imageUri, DiskCache diskCache) {
		File image = diskCache.get(imageUri);
		return image != null && image.exists() && image.delete();
	}
998433
public function removeFilter($filterHash)
    {
        // Make lower case
        $filterHash = strtolower($filterHash);

        // Remove this filter if it has been defined
        if (array_key_exists($filterHash, $this->options['filters'])) {
            unset($this->options['filters'][$filterHash]);
        }

        unset($filterHash);

        return $this;
    }
806504
protected void removeStreamingHostFromSpaceProps(String spaceId) {
        // Update bucket tags to remove streaming host
        Map<String, String> spaceProps =
            s3Provider.getSpaceProperties(spaceId);
        if (spaceProps.containsKey(STREAMING_HOST_PROP)) {
            spaceProps.remove(STREAMING_HOST_PROP);
            spaceProps.remove(STREAMING_TYPE_PROP);
            unwrappedS3Provider.setNewSpaceProperties(spaceId, spaceProps);
        }
    }
1370088
public synchronized void remove(final File file) {
        final T t = cache.get(file);
        expiry.remove(file);
        cache.remove(file);
        if (null != t && t instanceof Expireable) {
            final Expireable exp = (Expireable) t;
            exp.expire();
        }
    }
1121254
public final void remove(String pid) throws LowlevelStorageException {
        File file = getFile(pid);

        pathRegistry.remove(pid);
        fileSystem.delete(file);
    }
816056
public function removeCssFile($hash)
    {
        $file = $this->getViewCssFileFromHash($hash);
        if (file_exists($file)) {
            unlink($file);
        }
    }
449136
protected function removeCacheFile($hash)
    {
        if (!$this->hasCachedFile($hash)) {
            return false;
        }
        
        $fileData = $this->cachedFiles[$hash];
        $this->fileBackend->deleteFile($fileData['file']);
    }
1228300
@Override
    public void destroy() {
        checkDestroyed();
        cleanFiles();
        destroyed = true;

        if (undecodedChunk != null && undecodedChunk.refCnt() > 0) {
            undecodedChunk.release();
            undecodedChunk = null;
        }

        // release all data which was not yet pulled
        for (int i = bodyListHttpDataRank; i < bodyListHttpData.size(); i++) {
            bodyListHttpData.get(i).release();
        }
    }
294891
private void removeUserHashes(TenantDefinition tenantDef) {
        for (UserDefinition userDef : tenantDef.getUsers().values()) {
            userDef.setHash(null);
        }
    }
1210474
public boolean removeBusHalt(BusItineraryHalt bushalt) {
		try {
			int index = ListUtil.indexOf(this.validHalts, VALID_HALT_COMPARATOR, bushalt);
			if (index >= 0) {
				return removeBusHalt(index);
			}
			index = ListUtil.indexOf(this.invalidHalts, INVALID_HALT_COMPARATOR, bushalt);
			if (index >= 0) {
				index += this.validHalts.size();
				return removeBusHalt(index);
			}
		} catch (Throwable exception) {
			//
		}
		return false;
	}
212740
protected function deletePasswordRequestData($hash) 
    {
        $table = $this->getServiceLocator()->get('MelisLostPasswordTable');
        $data = $this->getPasswordRequestData($hash);
        
        if($data)
            $table->deleteByField('rh_hash', $hash);
    }
1350611
public void remove(Class<?> clazz) {
		ClassMetadata metadata = get(clazz);
		metadataByClass.remove(clazz);
		metadataByKind.remove(metadata.getKind());
	}
127051
def remove filename
      return false unless source_hash.key?(filename)
      source_hash.delete filename
      true
    end
983011
@Override
    public void del(String key) {
        File f = new File(directory, hash(key));
        f.delete();
    }
310411
protected void deleteRecord(Connection connection, String hash)
            throws SQLException {
        int id = selectRecordId(hash);
        if (id > 0) {
            String[] queries = new String[] { Query.DELETE_FILEHASHES,
                    Query.DELETE_METAS, Query.DELETE_CVES,
                    Query.DELETE_RECORD_ID };
            for (String query : queries) {
                PreparedStatement ps = setObjects(connection, query, id);
                ps.execute();
                ps.close();
            }
        }
    }