Deleting Entries with the GFAPI

Introduction

The GFAPI::delete_entry() method is used to permanently delete an entry.

Source Code

public static function delete_entry( $entry_id ) {}

This method is located in /includes/api.php.

Parameters

ParamTypeDescription
$entry_idintegerThe ID of the entry to be deleted.

Returns

Boolean, true on success, or a WP_Error instance if an error occurs.

Usage Example

$result = GFAPI::delete_entry( $entry_id );