WP-CLIwp easy-svg share revoke

wp easy-svg share revoke

End a share link at once by its id. The other site gets the same answer as for an expired link.

WP-CLI command, Easy SVG Pro, Status: Stable

This command ends a share link before it expires. From that moment the link answers like an expired one, and an import on another site fails.

Usage

wp easy-svg share revoke <id>

When to use it

  • A link went to the wrong person or into a public channel.
  • The other site has imported the collection and the link is no longer needed.
  • The site holds 50 live links and wp easy-svg share create refuses a new one.

Parameters

query
idpositional
Required

The link's id, the 12 characters before the dot in the link, as wp easy-svg share list prints it.

Return value

stdouttext

Success: Link revoked. On a German site: Link widerrufen.

exit codeint

0 when the link was removed. 1 when there is no stored link with that id (No such link.), or the license, the free plugin's icon library, the WP-CLI feature or the Share links feature is off.

Examples

wp easy-svg share revoke a1b2c3d4e5f6

Pitfalls

  • A download already made stays made. Revoking stops future fetches. A site that imported the collection keeps its icon set.
  • No undo. A revoked link cannot be brought back. Make a new one.