classes/cli/PodsAPI_CLI_Command.php
public function delete_pod( $args, $assoc_args ) {

		$api = pods_api();

		// Handle prettified arg name
		if ( ! empty( $assoc_args['delete-all'] ) ) {
			$assoc_args['delete_all'] = true;

			unset( $assoc_args['delete-all'] );
		}

		$deleted = false;

		try {
			$pod = $api->load_pod( $assoc_args['name'] );

			if ( ! $pod ) {
				WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['name'] ) );
			}

			$deleted = $api->delete_pod( $assoc_args );
		} catch ( Exception $e ) {
			WP_CLI::error( sprintf( __( 'Error deleting pod: %s', 'pods' ), $e->getMessage() ) );
		}

		if ( $deleted ) {
			WP_CLI::success( __( 'Pod deleted.', 'pods' ) );
		} else {
			WP_CLI::error( __( 'Pod not deleted.', 'pods' ) );
		}

	}
public function delete_pod( $args, $assoc_args ) {

		$api = pods_api();

		// Handle prettified arg name
		if ( ! empty( $assoc_args['delete-all'] ) ) {
			$assoc_args['delete_all'] = true;

			unset( $assoc_args['delete-all'] );
		}

		$deleted = false;

		try {
			$pod = $api->load_pod( $assoc_args['name'] );

			if ( ! $pod ) {
				WP_CLI::error( sprintf( __( 'Pod "%s" does not exist.', 'pods' ), $assoc_args['name'] ) );
			}

			$deleted = $api->delete_pod( $assoc_args );
		} catch ( Exception $e ) {
			WP_CLI::error( sprintf( __( 'Error deleting pod: %s', 'pods' ), $e->getMessage() ) );
		}

		if ( $deleted ) {
			WP_CLI::success( __( 'Pod deleted.', 'pods' ) );
		} else {
			WP_CLI::error( __( 'Pod not deleted.', 'pods' ) );
		}

	}
public function delete_pod ( $ args , $ assoc_args ) { $ api = pods_api ( ) ; // Handle prettified arg name if ( ! empty ( $ assoc_args [ 'delete-all' ] ) ) { $ assoc_args [ 'delete_all' ] = true ; unset ( $ assoc_args [ 'delete-all' ] ) ; } $ deleted = false ; try { $ pod = $ api -> load_pod ( $ assoc_args [ 'name' ] ) ; if ( ! $ pod ) { WP_CLI :: error ( sprintf ( __ ( 'Pod "%s" does not exist.' , 'pods' ) , $ assoc_args [ 'name' ] ) ) ; } $ deleted = $ api -> delete_pod ( $ assoc_args ) ; } catch ( Exception $ e ) { WP_CLI :: error ( sprintf ( __ ( 'Error deleting pod: %s' , 'pods' ) , $ e -> getMessage ( ) ) ) ; } if ( $ deleted ) { WP_CLI :: success ( __ ( 'Pod deleted.' , 'pods' ) ) ; } else { WP_CLI :: error ( __ ( 'Pod not deleted.' , 'pods' ) ) ; } }
Delete a pod, which will NOT delete all pod items by default.

## OPTIONS

--name=<name>
: The pod name.

[--delete-all]
: Delete all pod content for the pod.

## EXAMPLES

wp pods-api delete-pod --name=book
wp pods-api delete-pod --name=book --delete_all

@subcommand delete-pod

@param $args
@param $assoc_args
Delete a pod which will NOT delete all pod items by default .