Unable to delete video on Sharepoint Library

I’m trying to delete a video file that is saved inside a SharePoint online library and always gives me the error “You have to delete all the items in this folder before you can delete the folder“. The user has the permissions to do it, also the item is not locked or check out.

I try deleting the file from SharePoint Designer and I can see that the video is actually a folder that has:

  1. Video File
  2. Folder: “Preview Images”
  3. Folder: “Additional Content”

If I delete each folder and file from here. I was able to finally delete the video from the library, but this is not a solution, for all the users.

Has anyone experience something like that?

Automatically delete on many-to-many relationship

Is there a possiblity to delete unused/orphaned entries in many-to-many relationships? Either on database level (MSSQL) or in within the framework (EF6).

Lets say you have a relationship: Student To Course A Student can have many Courses, and a Course can be attended by multiple Students. When the last Student of a Course is deleted the Course should also be deleted.

Восстановить удаленные записи (soft delete) при клике на кнопку Laravel

При клике на кнопку восстановления переходит на страницу как пример post/2/restore и пишет not found web.php

Route::post('/post/{post}/restore', 'PostController@restore'); 

view

@section('content') <div class="container-fluid back">     <div class="row justify-content-center">         @foreach($  posts as $  post)             <div class="col-md-6 col-12">                 <div class="row">                     <div class="col-6">                         <a href="/post/{{$  post->id}}">  <img src="/storage/{{ $  post->image }}" class="w-100"> </a>                     </div>                     <div class="col-6">                         <p>{{$  post->title}}</p>                         <p>{{$  post->created_at}}</p>                         <p>{{$  post->deleted_at}}</p>                         <form action="/post/{{$  post->id}}/restore" method="post">                             @csrf                             <button type="button" type="submit" name="button" class="btn btn-primary"> Восстановить</button>                             <a href="" class='btn btn-danger'>Удалить навсегда</a>                         </form>                     </div>                 </div>             </div>         @endforeach     </div> </div> @endsection 

PostController.php

    public function restore(Post $  post)     {         $  post = Post::withTrashed()->find(post)->restore();         return redirect('/profile/' . auth()->user()->id);     } 

Can’t delete a repository from terminal

I wanted to upgrade Ubuntu (18.04)

$   sudo apt update $   sudo apt upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed:   linux-headers-4.15.0-46 linux-headers-4.15.0-46-generic   linux-image-4.15.0-46-generic linux-modules-4.15.0-46-generic   linux-modules-extra-4.15.0-46-generic The following packages have been kept back:   nodejs nodejs-dev The following packages will be upgraded:   chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra dynamips   firefox-locale-en ghostscript ghostscript-x gir1.2-dbusmenu-glib-0.4   gir1.2-gtk-3.0 gtk-update-icon-cache initramfs-tools initramfs-tools-bin   initramfs-tools-core libdbusmenu-glib4 libdbusmenu-gtk3-4 libdbusmenu-gtk4   libgail-3-0 libgs9 libgs9-common libgtk-3-0 libgtk-3-bin libgtk-3-common   libldb1 libnss3 libssl1.0.0 linux-generic linux-headers-generic   linux-image-generic linux-libc-dev openssh-client skypeforlinux thunderbird   thunderbird-gnome-support thunderbird-locale-en thunderbird-locale-en-us   unattended-upgrades 36 upgraded, 5 newly installed, 0 to remove and 2 not upgraded. Need to get 258 MB of archives. After this operation, 345 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://ubuntu.parspack.com/ubuntu bionic-security/universe amd64 chromium-browser-l10n all 72.0.3626.119-0ubuntu0.18.04.1 [2,767 kB] Get:2 http://ppa.launchpad.net/gns3/ppa/ubuntu bionic/main amd64 dynamips amd64 0.2.21-1~bionic1 [358 kB] Get:3 https://repo.skype.com/deb stable/main amd64 skypeforlinux amd64 8.49.0.49 [73.2 MB] Get:4 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libgail-3-0 amd64 3.22.30-1ubuntu2 [21.5 kB] Get:5 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libgtk-3-common all 3.22.30-1ubuntu2 [228 kB] Get:6 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libgtk-3-0 amd64 3.22.30-1ubuntu2 [2,500 kB] Get:7 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libnss3 amd64 2:3.35-2ubuntu2.2 [1,134 kB] Get:8 http://ubuntu.parspack.com/ubuntu bionic-security/universe amd64 chromium-browser amd64 72.0.3626.119-0ubuntu0.18.04.1 [58.0 MB] Err:9 http://ubuntu.parspack.com/ubuntu bionic-security/universe amd64 chromium-codecs-ffmpeg-extra amd64 72.0.3626.119-0ubuntu0.18.04.1   404  Not Found [IP: 130.185.78.140 80] Get:10 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 initramfs-tools all 0.130ubuntu3.7 [9,592 B] Get:11 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 initramfs-tools-core all 0.130ubuntu3.7 [48.1 kB] Get:12 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 initramfs-tools-bin amd64 0.130ubuntu3.7 [12.8 kB] Get:13 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libssl1.0.0 amd64 1.0.2n-1ubuntu5.3 [1,088 kB] Get:14 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 openssh-client amd64 1:7.6p1-4ubuntu0.3 [614 kB] Get:15 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 firefox-locale-en amd64 65.0.1+build2-0ubuntu0.18.04.1 [947 kB] Get:16 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 ghostscript-x amd64 9.26~dfsg+0-0ubuntu0.18.04.7 [42.9 kB] Get:17 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 ghostscript amd64 9.26~dfsg+0-0ubuntu0.18.04.7 [51.2 kB] Get:18 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libgs9 amd64 9.26~dfsg+0-0ubuntu0.18.04.7 [2,263 kB] Get:19 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libgs9-common all 9.26~dfsg+0-0ubuntu0.18.04.7 [5,092 kB] Get:20 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 gir1.2-dbusmenu-glib-0.4 amd64 16.04.1+18.04.20171206-0ubuntu2 [6,252 B] Get:21 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libdbusmenu-glib4 amd64 16.04.1+18.04.20171206-0ubuntu2 [41.0 kB] Get:22 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 gir1.2-gtk-3.0 amd64 3.22.30-1ubuntu2 [194 kB] Get:23 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 gtk-update-icon-cache amd64 3.22.30-1ubuntu2 [28.1 kB] Get:24 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libdbusmenu-gtk3-4 amd64 16.04.1+18.04.20171206-0ubuntu2 [26.8 kB] Get:25 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libdbusmenu-gtk4 amd64 16.04.1+18.04.20171206-0ubuntu2 [26.9 kB] Get:26 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libgtk-3-bin amd64 3.22.30-1ubuntu2 [57.4 kB] Get:27 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 libldb1 amd64 2:1.2.3-1ubuntu0.1 [114 kB] Get:28 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-modules-4.15.0-46-generic amd64 4.15.0-46.49 [12.9 MB] Get:29 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-image-4.15.0-46-generic amd64 4.15.0-46.49 [7,904 kB] Get:30 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-modules-extra-4.15.0-46-generic amd64 4.15.0-46.49 [32.7 MB] Get:31 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-generic amd64 4.15.0.46.48 [1,864 B] Get:32 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-image-generic amd64 4.15.0.46.48 [2,424 B] Get:33 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-headers-4.15.0-46 all 4.15.0-46.49 [11.0 MB] Get:34 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-headers-4.15.0-46-generic amd64 4.15.0-46.49 [1,103 kB] Get:35 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-headers-generic amd64 4.15.0.46.48 [2,376 B] Get:36 http://ubuntu.parspack.com/ubuntu bionic-security/main amd64 linux-libc-dev amd64 4.15.0-46.49 [998 kB] Get:37 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 thunderbird-locale-en amd64 1:60.5.1+build2-0ubuntu0.18.04.1 [492 kB] Get:38 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 thunderbird amd64 1:60.5.1+build2-0ubuntu0.18.04.1 [41.2 MB] Get:39 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 thunderbird-gnome-support amd64 1:60.5.1+build2-0ubuntu0.18.04.1 [8,636 B] Get:40 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 thunderbird-locale-en-us all 1:60.5.1+build2-0ubuntu0.18.04.1 [11.1 kB] Get:41 http://ubuntu.parspack.com/ubuntu bionic-updates/main amd64 unattended-upgrades all 1.1ubuntu1.18.04.9 [40.0 kB] Fetched 257 MB in 6min 38s (646 kB/s)                                           E: Failed to fetch http://ubuntu.parspack.com/ubuntu/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_72.0.3626.119-0ubuntu0.18.04.1_amd64.deb  404  Not Found [IP: 130.185.78.140 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

So i can see an Error:

    E: Failed to fetch http://ubuntu.parspack.com/ubuntu/pool/universe/c/chromium-browser/chromium-codecs-ffmpeg-extra_72.0.3626.119-0ubuntu0.18.04.1_amd64.deb  404  Not Found [IP: 130.185.78.140 80] 

Now, i decided to delete the repository.
But i couldn’t find any repository which is for Chromium to delete.
Checking my sources.list

$   sudo nano /etc/apt/sources.list  # deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://ubuntu.parspack.com/ubuntu/ bionic main restricted # deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://ubuntu.parspack.com/ubuntu/ bionic-updates main restricted # deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://ubuntu.parspack.com/ubuntu/ bionic universe # deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic universe deb http://ubuntu.parspack.com/ubuntu/ bionic-updates universe # deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://ubuntu.parspack.com/ubuntu/ bionic multiverse # deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://ubuntu.parspack.com/ubuntu/ bionic-updates multiverse # deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://ubuntu.parspack.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://ir.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner  deb http://ubuntu.parspack.com/ubuntu/ bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted deb http://ubuntu.parspack.com/ubuntu/ bionic-security universe # deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://ubuntu.parspack.com/ubuntu/ bionic-security multiverse # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse deb http://archive.canonical.com/ bionic partner # deb-src http://archive.canonical.com/ bionic partner deb http://archive.ubuntu.com/ubuntu bionic universe # deb-src http://archive.ubuntu.com/ubuntu bionic universe # deb-src http://archive.ubuntu.com/ubuntu bionic universe deb http://dl.winehq.org/wine-builds/ubuntu/ artful main # deb-src http://dl.winehq.org/wine-builds/ubuntu/ artful main 

You can see, there is no Repository about Chromium.
Why the terminal shows Error?
My /etc/apt/sources.list.d Directory:

$   cd /etc/apt/sources.list.d /etc/apt/sources.list.d$   ls 

Output:

albertomilone-ubuntu-hamster-indicator-bionic.list       mc3man-ubuntu-gstffmpeg-keep-bionic.list.save  openjdk-r-ubuntu-ppa-bionic.list                    ubuntuhandbook1-ubuntu-avidemux-bionic.list.save albertomilone-ubuntu-hamster-indicator-bionic.list.save  mc3man-ubuntu-trusty-media-bionic.list         openjdk-r-ubuntu-ppa-bionic.list.save               webupd8team-ubuntu-atom-bionic.list alex-p-ubuntu-aegisub-bionic.list                        mc3man-ubuntu-trusty-media-bionic.list.save    openshot_developers-ubuntu-ppa-bionic.list          webupd8team-ubuntu-atom-bionic.list.save alex-p-ubuntu-aegisub-bionic.list.save                   mystic-mirage-ubuntu-pycharm-bionic.list       openshot_developers-ubuntu-ppa-bionic.list.save     webupd8team-ubuntu-sublime-text-3-bionic.list gns3-ubuntu-ppa-bionic.list                              mystic-mirage-ubuntu-pycharm-bionic.list.save  skype-stable.list                                   webupd8team-ubuntu-sublime-text-3-bionic.list.save gns3-ubuntu-ppa-bionic.list.save                         noobslab-ubuntu-macbuntu-bionic.list           skype-stable.list.save                              whatsie.list kazam-team-ubuntu-unstable-series-bionic.list            noobslab-ubuntu-macbuntu-bionic.list.save      ubuntu-desktop-ubuntu-ubuntu-make-bionic.list       whatsie.list.save kazam-team-ubuntu-unstable-series-bionic.list.save       obsproject-ubuntu-obs-studio-bionic.list       ubuntu-desktop-ubuntu-ubuntu-make-bionic.list.save mc3man-ubuntu-gstffmpeg-keep-bionic.list                 obsproject-ubuntu-obs-studio-bionic.list.save  ubuntuhandbook1-ubuntu-avidemux-bionic.list 

I remember, a month ago, i deleted every single directory about chromuim from there.
But i keep seeing this error, why is this?
Is there any other directory which repositories save there?

How to Delete particular folder from sharepoint Library using powershell script?

I want to delete particular folders from SharePoint Document library.

I have done this using C#, Its working fine. But I want to modify the same code to powershell.

i tried below code with powershell. I want to modify this C# to Powershell Code I am having doubt in this line:

string documentLibraryFolderurl= SPContext.Current.Web.Url + "/" + oList + "/" + str + "/" + "Test" + "/" + CategoryName; if (oWeb.GetFolder(documentLibraryFolderurlAward).Exists == true) SPFolder folder = oWeb.GetFolder(documentLibraryFolderurlAward); folder.Delete(); 

can anyone help me on this?

Update Libreoffice and Delete Evolution mail client

I just update Libreoffice because it wasn’t working properly by: snap install libreoffice

But I install a newer version and keep the old one. And did not get the programs working yet.

So I update and install Libre office: sudo apt-get update *sudo apt-get install libreoffice**

But I found out that there was two versions of Libre office 6.0 and 6.2 So I decided to remove the older one: sudo apt-get remove libreoffice 6.0

Here comes the problem: I can not explain how but my mail client (Evolution) has gone. With all my job mails.

Can anyone please help me to recover all my mails?

Can not delete site with AppOnly Authentication

I am trying to delete the site with app only permissions.

Below is my Provider Hosted app permissions

  <AppPermissionRequests AllowAppOnlyPolicy="true" >     <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />   </AppPermissionRequests> 

Below is the code I am trying

using (var ctx = new OfficeDevPnP.Core.AuthenticationManager().GetAppOnlyAuthenticatedContext(                                 <TenantAdminUrl> // Tenant Url                                 , <ClientID> // Client Id                                 , <ClientSecret>)) // Client Secret  {     var tenant = new Tenant(ctx);     var removeSite = tenant.RemoveSite(<siteurl>);     ctx.Load(removeSite);     ctx.ExecuteQueryRetry(); } 

Above code is giving me following error

Microsoft.SharePoint.Client.ServerUnauthorizedAccessException: Access denied. You do not have permission to perform this action or access this resource. at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() at Microsoft.SharePoint.Client.ClientRequest.d__6.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.SharePoint.Client.ClientRequest.d__0.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.SharePoint.Client.ClientRuntimeContext.d__0.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.SharePoint.Client.ClientContext.d__4.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.SharePoint.Client.ClientContextExtensions.d__7.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)