Skip to content

Commit 19149c4

Browse files
committed
Add notes to delete asset functions for better user guidance
1 parent 1cb0706 commit 19149c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

example/example.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ func main() {
5050
log.Println(videoResult.SecureURL)
5151

5252
// Delete a single asset by Public ID
53+
// Note: Once an asset is deleted, the associated URL will no longer work.
54+
// If you want to access the uploaded asset via the logged URL, comment out this deleteAsset() call.
5355
deleteAsset(cld, ctx, "logo")
5456

5557
// Bulk delete multiple assets by Public IDs
58+
// Note: Assets deleted here will also become inaccessible through their URLs.
59+
// Comment out this bulkDeleteAssets() call if you want to keep them available for testing.
5660
bulkDeleteAssets(cld, ctx, []string{"old_img1", "old_img2", "old_img3"})
5761

5862
// List assets with pagination (first 5 per page)

0 commit comments

Comments
 (0)