Delete a release asset.

@param   string   $user     The name of the owner of the GitHub repository.
@param   string   $repo     The name of the GitHub repository.
@param   integer  $assetId  The asset id.

@return  boolean

@since   1.4.0
761049
public function deleteAsset($user, $repo, $assetId)
	{
		// Build the request path.
		$path = '/repos/' . $user . '/' . $repo . '/releases/assets/' . (int) $assetId;

		// Send the request.
		$this->processResponse($this->client->delete($this->fetchUrl($path)), 204);

		return true;
	}
1161323
public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package)
    {
        $res = parent::uninstall($repo, $package);
        $this->operations[] = array('-', $package);
        return $res;
    }
237787
public function delete($appUserId, $id)
    {
        $url = sprintf('users/%s/bankaccounts/%s', $appUserId, $id);
        return $this->deleteObject($url);
    }
427308
def remove_release(self, username, package_name, version):
        '''
        
        '''
        url = '%s/release/%s/%s/%s' % (self.domain, username, package_name, version)
        res = self.session.delete(url)
        self._check_response(res, [201])
        return
726473
public function destroy($id)
    {
        $deletedUser = $this->repository
            ->query()
            ->withTrashed()
            ->whereId($id)->first();

        $deletedUser->forceDelete();
        
        return redirect()->route('admin.user-delete-request.index');
    }
991306
public function getByTag($user, $repo, $tag)
	{
		// Build the request path.
		$path = "/repos/$user/$repo/releases/tags/$tag";

		// Send the request.
		return $this->processResponse($this->client->get($this->fetchUrl($path)));
	}
434598
public function remove($username, $repository, $issue, $label)
    {
        return $this->delete('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/issues/'.rawurlencode($issue).'/labels/'.rawurlencode($label));
    }
967474
public function preRemove(User $user, LifecycleEventArgs $event)
    {
        $oldAvatarImage = $user->getAvatarImage();
        if (!empty($oldAvatarImage)) {
            $this->userService->deleteAvatar($oldAvatarImage);
        }
    }
720333
public function removeComposerRepository($repo_url) {
    $composer_json = $this->getComposerJson();
    if (!empty($composer_json['repositories'])) {
      foreach ($composer_json['repositories'] as $key => $repo) {
        $url = $repo['url'];
        if ($repo_url == $url) {
          unset($composer_json['repositories'][$key]);
          $this->writeComposerJson($composer_json);

          return TRUE;
        }
      }
    }
    return FALSE;
  }
1370747
public function delete($account, $repo, $linkID)
    {
        return $this->requestDelete(
            sprintf('repositories/%s/%s/links/%d', $account, $repo, $linkID)
        );
    }
1216201
public function destroy(User $user)
    {
        try {
            \DB::beginTransaction();
            $user->delete();
            \DB::commit();

            return $this->makeRedirect(true, 'admin.users.index', __('destroy'));
        }
        catch (\Exception $e) {
            \DB::rollback();

            return $this->makeRedirect(false, 'admin.users.index', $e->getMessage());
        }
    }
606216
public function get_api_release_asset( $git, $request ) {
		$response = isset( $this->response['release_asset'] ) ? $this->response['release_asset'] : false;

		if ( $response && $this->exit_no_update( $response ) ) {
			return false;
		}

		if ( ! $response ) {
			self::$method = 'release_asset';
			$response     = $this->api( $request );
			$response     = $this->parse_release_asset( $git, $request, $response );

			if ( ! $response && ! is_wp_error( $response ) ) {
				$response          = new \stdClass();
				$response->message = 'No release asset found';
			}
		}

		if ( $response && ! isset( $this->response['release_asset'] ) ) {
			$this->set_repo_cache( 'release_asset', $response );
		}

		if ( $this->validate_response( $response ) ) {
			return false;
		}

		return $response;
	}
224226
public function deleteAction(Asset $asset): void
    {
        $usageReferences = $this->assetService->getUsageReferences($asset);
        if (count($usageReferences) > 0) {
            $this->addFlashMessage('deleteRelatedNodes', '', Message::SEVERITY_WARNING, [], 1412422767);
            $this->redirect('index');
        }

        $this->assetRepository->remove($asset);
        $this->addFlashMessage('assetHasBeenDeleted', '', Message::SEVERITY_OK, [$asset->getLabel()], 1412375050);
        $this->redirect('index');
    }
772989
public function delete( $key, $user_id = null, $meta_value = '' ) {
		if ( ! isset( $user_id ) ) {
			$user_id = $this->user_id;
		}
		if ( $user_id <= 0 ) {
			return false;
		}

		return delete_user_meta( $user_id, $this->get_meta_key( $key ), $meta_value );
	}
1106386
public function delete(Repo $repo)
    {
        $rows = array();

        foreach ($this->getRows() as $row) {
            if ($row['id'] == $repo->getId()) {
                continue;
            }
            $rows[] = $row;
        }

        file_put_contents($this->filename, Yaml::dump($rows));
    }
1218763
protected function _deleteObject( $user_id ) {
		$user = get_user_by( 'id', $user_id );
		if ( ! $user ) {
			return false;
		}

		$deleted = is_multisite()
			? wpmu_delete_user( $user_id )
			: wp_delete_user( $user_id );

		if ( $deleted ) {
			$this->_debug( 'Deleted user with ID: ' . $user_id );
			return true;
		}

		$this->_debug( 'User removal failed for ID: ' . $user_id );
		return false;
	}
782254
public function diff(string $user, string $repo, string $base, string $head)
    {
        $api = $this->client->api('repo')->commits();
        $params = [$user, $repo, $base, $head];

        return $this->callGitHub([$api, 'compare'], $params);
    }