COPENHAGEN, Denmark — Denmark’s intelligence agency said Tuesday that it is withdrawing injunctions against the publication of a book based on interviews of its former chief, saying they can’t be enforced after a newspaper printed the whole book on Sunday.

The Danish Security and Intelligence Service, known by its acronym PET, secured a court injunction on Friday against People’s Press, the publisher of the book “Seven Years with PET.” A day later, two media and 40 book stores across Denmark were ordered not to publish or sell the book.

The book is based on interviews with Jakob Scharf, who was fired in 2013 after seven years in the job.

The injunctions were granted at the request of PET, whose officials hadn’t read the book but feared it might contain secrets.