DOKK / manpages / debian 12 / libcatmandu-fedoracommons-perl / Catmandu::FedoraCommons::Model::purgeRelationship.3pm.en
Catmandu::FedoraCommons::Model::purgeRelationship(3pm) User Contributed Perl Documentation Catmandu::FedoraCommons::Model::purgeRelationship(3pm)

Catmandu::FedoraCommons::Model::purgeRelationship - Perl model for the Fedora 'purgeRelationship' REST call

  use Catmandu::FedoraCommons;
  
  my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');
  
  my $obj = $fedora->purgeRelationship(pid => 'demo:29' , relation => [ 'info:fedora/demo:29' , 'http://my.org/name' , 'Peter'])->parse_content;
  
  {
    'purged' => 'upload://11'
  }

Catmandu::FedoraCommons

2023-02-05 perl v5.36.0