classes/PodsAPI.php
public function delete_object( $params ) {

		$params = (object) $params;
		$object = $this->load_object( $params );

		if ( empty( $object ) ) {
			return pods_error( sprintf( __( "%s Object not found", 'pods' ), ucwords( $params->type ) ), $this );
		}

		$success = wp_delete_post( $params->id );

		if ( ! $success ) {
			return pods_error( sprintf( __( "%s Object not deleted", 'pods' ), ucwords( $params->type ) ), $this );
		}

		pods_transient_clear( 'pods_objects_' . $params->type );

		return true;
	}
public function delete_object( $params ) {

		$params = (object) $params;
		$object = $this->load_object( $params );

		if ( empty( $object ) ) {
			return pods_error( sprintf( __( "%s Object not found", 'pods' ), ucwords( $params->type ) ), $this );
		}

		$success = wp_delete_post( $params->id );

		if ( ! $success ) {
			return pods_error( sprintf( __( "%s Object not deleted", 'pods' ), ucwords( $params->type ) ), $this );
		}

		pods_transient_clear( 'pods_objects_' . $params->type );

		return true;
	}
public function delete_object ( $ params ) { $ params = ( object ) $ params ; $ object = $ this -> load_object ( $ params ) ; if ( empty ( $ object ) ) { return pods_error ( sprintf ( __ ( "%s Object not found" , 'pods' ) , ucwords ( $ params -> type ) ) , $ this ) ; } $ success = wp_delete_post ( $ params -> id ) ; if ( ! $ success ) { return pods_error ( sprintf ( __ ( "%s Object not deleted" , 'pods' ) , ucwords ( $ params -> type ) ) , $ this ) ; } pods_transient_clear ( 'pods_objects_' . $ params -> type ) ; return true ; }
Drop a Pod Object

$params['id'] int The object ID
$params['name'] string The object name
$params['type'] string The object type

@param array|object $params An associative array of parameters

@uses  wp_delete_post

@return bool
@since 2.0.0
Drop a Pod Object