Delete expired transients
wp_cleanup_transientsDelete expired WordPress transients by removing option rows whose timeout has passed, leaving unexpired and site transients untouched, and return the count deleted.
Instructions
Delete the expired transients: every transient whose transient_timeout row in the options table has passed is deleted through WordPress (value and timeout). Transients not yet expired and site transients (site_transient) are left alone. Returns deleted, the number of expired transients found and handed to WordPress for deletion. With a persistent object cache WordPress deletes in the cache only, so the old option rows can remain. Requires manage_options.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wp_cleanup_transients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||