protected function perform_delete( $force ) {
		switch ( $this->wp_type ) {
			case 'term':
				$delete = wp_delete_term( $this->get_id(), $this->object_type );
				return ( ! is_wp_error( $delete ) && true === $delete );

			case 'post':
				if ( ! $force && 'trash' !== get_post_status( $this->get_id() ) && EMPTY_TRASH_DAYS ) {
					$delete = wp_trash_post( $this->get_id() );
				} else {
					$delete = wp_delete_post( $this->get_id(), true );
				}

				return ( ! is_null( $delete ) && ! is_wp_error( $delete ) && false !== $delete );
		}

		return false;
	}
protected function perform_delete( $force ) {
		switch ( $this->wp_type ) {
			case 'term':
				$delete = wp_delete_term( $this->get_id(), $this->object_type );
				return ( ! is_wp_error( $delete ) && true === $delete );

			case 'post':
				if ( ! $force && 'trash' !== get_post_status( $this->get_id() ) && EMPTY_TRASH_DAYS ) {
					$delete = wp_trash_post( $this->get_id() );
				} else {
					$delete = wp_delete_post( $this->get_id(), true );
				}

				return ( ! is_null( $delete ) && ! is_wp_error( $delete ) && false !== $delete );
		}

		return false;
	}
protected function perform_delete ( $ force ) { switch ( $ this -> wp_type ) { case 'term' : $ delete = wp_delete_term ( $ this -> get_id ( ) , $ this -> object_type ) ; return ( ! is_wp_error ( $ delete ) && true === $ delete ) ; case 'post' : if ( ! $ force && 'trash' !== get_post_status ( $ this -> get_id ( ) ) && EMPTY_TRASH_DAYS ) { $ delete = wp_trash_post ( $ this -> get_id ( ) ) ; } else { $ delete = wp_delete_post ( $ this -> get_id ( ) , true ) ; } return ( ! is_null ( $ delete ) && ! is_wp_error ( $ delete ) && false !== $ delete ) ; } return false ; }
Perform delete object.

@see wp_delete_post()
@see wp_delete_term()

@param  bool $force Force delete or not.
@return bool
Perform delete object .