Remove rpm.versions system configuration

This function removes RPM data. When you call this function, it performs the same actions as the following command:

/usr/local/cpanel/scripts/update_local_rpm_versions --del section.key value

For more information, read our rpm.versions system documentation.

Note:

After you call this function, we strongly recommend that you run the /usr/local/cpanel/scripts/check_cpanel_pkgs script.

SecurityBasicAuth
Request
query Parameters
key
required
string
Example: key=3rdparty
section
required
string

The RPM's section within the rpm.versions file.

Example: section=rpm_groups
value
required
string

The RPM name.

Example: value=cpanel-pcre
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/delete_rpm_version
Request samples
whmapi1 --output=jsonpretty \
  delete_rpm_version \
  section='rpm_groups' \
  key='3rdparty' \
  value='cpanel-pcre'
Response samples
application/json
{
  • "data": {
    • "status": 1
    },
  • "metadata": {
    • "command": "delete_rpm_version",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}