How to delete marked files in 1s 8.3. Accounting info. Why were some objects unable to be deleted?

Send this article to my email

When trying to delete an unnecessary system object (directory item, document, report option, etc.), the user will not be able to permanently remove it from the 1C database; he can only set a mark for deletion. Therefore, the question arises - How to delete marked objects in 1C 8.3?

In this article we will look at how to complete this process. The deletion functionality for many configurations is identical and the described technique is suitable for UT, ERP, Accounting and ZUP.

To completely remove an object from the 1C database, you must run the Deletion of marked objects processing. This was done not to complicate the work of users, but to avoid errors. For example, if you remove the counterparty to whom the sale is registered, the products will be sold to no one. Therefore, it is impossible to simply remove objects from the system; you must first make sure that it is not used anywhere and its absence will not lead to errors in the program, and it is for this purpose that the Deletion of marked objects processing is provided.

Thus, in 1C, deletion is performed in two stages:

 Setting a mark for deletion in 1C;

 Final removal by processing if the object is not involved in any way in the system.

How to set a deletion mark in 1C 8.3?

To set a mark for deletion in 1C, select the desired reference book/document (you can also select a list of objects at once), in the More menu, select the Mark for deletion/Unmark command (in some magazines an icon of this command is displayed) or press the delete button on your keyboard . The system will ask you to confirm your intentions and after that the mark will be checked.

Please note that if you try to set a mark on an already marked element, the reverse action will be performed - unchecking it.

How to delete marked objects?

In Accounting and ZUP, processing is available in the Administration section, in UT and ERP in the Master Data and Administration → Support and Maintenance section. And if you suddenly forgot in which section to look for the desired system object, you can always use the All functions section.

Processing Removal of marked objects is controlled by referential integrity, i.e. if the object being deleted has references in other objects, the deletion procedure will not be performed.

Two processing modes are available, automatic and manual (selective), and you can also set up a routine task for automatic removal according to a specified schedule.

In selective mode, the system will display all items marked for deletion, grouped by type. Using the checkboxes, you can select objects that you want to permanently remove from the system. By double clicking the mouse you can open the object. After the selection is made, you need to click Delete and the process of clearing the database of marked objects will begin.

In automatic mode, this process will start immediately.

As a result, regardless of the selected mode, processing will attempt to delete all objects that have the mark. If deletion is not possible, a list of non-deleted objects will be displayed with links to their places of use.

The options available in this case are:

 Mark the places of use for deletion and try to delete again.

 Make corrections at points of use. For example, if you need to delete an employee who is in the Hiring list document, you need to delete him from this document.

 Perform the replacement procedure using the Replace command. A list of similar items for replacement will be offered. For example, if you need to replace a characteristic of an item in a document, a list of characteristics of the same item will be offered.

To automatically perform the procedure using a scheduled task, you need to set the Automatically delete marked objects according to schedule flag in processing and configure the schedule.

Instructions

In order to delete an unnecessary document in the 1c Enterprise 8.2 program, you need to mark it for deletion. There are several ways to do this:

Place the cursor over the document and right-click on it. In the submenu, select “Set deletion mark”;

Move the cursor over the document, click on the “delete” icon (sheet with a red cross) on the toolbar.

A dialog box will appear: “Mark item for deletion?” - Yes.
After this, the document will have the status “Not Posted” and a red cross will be placed on it.

To restore a document marked for deletion:
- hover the cursor over the document, right-click on it, and select “Uncheck deletion” in the submenu;

Place the cursor over the document, press the Delete key on the keyboard;

A dialog box will appear: “Unmark the item for deletion?” - Yes.

To destroy documents marked for deletion, you need to go to the “Operations” menu item. In the submenu, select “Delete marked objects.”
A dialog box will appear: “Preparing to delete marked objects may take a long time! Continue the operation?" - Yes.

An inventory of all items that are marked for deletion will open. You must click on the “Control” button, then on the “Delete” button. After this, all elements are deleted and cannot be restored.

note

When objects marked for deletion are destroyed, only one user can be in the infobase. Other users of the infobase need to exit the program.

A user who wants to destroy documents marked for deletion must have rights to perform this operation. User rights are set by the database administrator.

Deletion is a very responsible operation, which often leads to irretrievable loss of information. In addition, there is a danger of accidentally deleting the necessary data. For this reason, the developers of the 1C program took the implementation of this function quite seriously.

You will need

  • - “1C: Enterprise” program.

Instructions

Launch the 1C: Enterprise program, open the desired database. Configure the document deletion mode in 1C. To do this, go to the “Tools” menu, select “Options”, go to the “General” tab. In the bottom line you can set the option for the object deletion mode. It can take two values ​​– “Direct deletion” or “Mark for deletion”. Select the second option and click OK.

Open the directory from which you want to delete 1C documents. Place the cursor on the line with the document, click the Delete key on the keyboard, or click the “Delete” button on the toolbar. You can also mark a document for deletion using the corresponding command in the “Actions” menu. After these steps, the documents will not be deleted, but their status icon will be crossed out with a cross. You can cancel this mark at any time using the same methods.

Almost every accountant in the course of his work is faced with the need to delete some document in 1C. If you don’t know how to properly delete documents in 1C, our new article is especially for you.

Almost every accountant in the course of his work is faced with the need to delete some file or document. Deleting a document in 1C is not much different from a similar process when working with the Windows operating system. There are a few important differences though:

    firstly, initially the document that needs to be deleted must be marked with a special sign (if we compare it with Windows OS, we can draw an analogy with moving a file to the trash);

    secondly, direct deletion occurs according to a strictly defined algorithm of actions.

If you are using version 1C 8.2, then in order to delete a file you need:

    right-click on the required document;

    wait until the context menu appears;

    mark a specific file for deletion, to do this, select “set a deletion mark” in the list that appears;

    give your consent to the system warning.

You can do it simpler and simply press the delete key after selecting the file to be deleted.


After all these manipulations, you will need to go to the main menu item called “Operations” and select the function of deleting marked objects. The system will give you a warning, which you will need to agree to before the program continues.



Next, the system will open a window in front of you where everything in the databases that are marked for deletion will be listed. From this list you have to select those that you want to delete right now. This can be one document or a whole group. When the file or files you are looking for are highlighted, you need to click the "Control" button. This is required in order to check links.


In the process of these actions, it may become clear that, for example, 1C directories contain links to the document to be deleted, or that the tax invoice contains a link that leads to the file that you are going to delete (invoice). To be able to complete the deletion process, you will need to open tax invoices or directories, or those documents that contain links to the file being deleted, and delete these same links. First, you will need to once again weigh the feasibility of such actions.




To avoid further confusion, you will need to recheck later after removing all links. And so on until the check shows that there are no links to the deleted file in other documents. After this, you will have access to the function of deleting marked objects. To complete the entire process, you will need to click on the “delete” button, after which the file will be deleted permanently.

The 1C Enterprise system does not initially involve direct deletion of any objects from the database, for example elements of directories, documents, reports, etc. Of course, you can still configure the user’s role so that he can immediately deleted from 1s some object no mark for deletion, but doing this is highly not recommended. We would also like to note the fact that even if the user’s role is configured to directly delete objects (interactive deletion), this is still will not allow him to delete some objects in enterprise 1c, and this can only be done through mark for deletion.

Why was the mark for deleting objects in 1c made?

Let’s answer the question “Why was this mark for deletion made?”, because it’s faster delete an object from 1s straightaway. This was done for several reasons:

  1. There is a possibility that the user will subsequently change his mind and want to return the deleted object, when there is a check mark, it is enough to uncheck it, If you delete it interactively, you cannot restore data.
  2. In 1c, one object, for example a document, can refer to many other objects in the system (directories, constants, other documents, etc.), and at the same time this object (in our case, a document) can also be referenced by many other objects. If the 1C enterprise system allowed direct deletion of objects from the database, this would lead to dire consequences, since objects with “broken links” would immediately begin to appear, and this would be a loss of data and incorrect functioning of the database, which sooner or later it will lead to the collapse of the database and almost complete loss of your data!

Two types of deletion in 1c, the concept of referential integrity control in 1c

In a programme 1c objects can be deleted two ways:

  1. Using interactive deletion (direct deletion without referential integrity checks)
  2. Through a deletion mark (deletion with referential integrity check)

Let's look at what referential integrity is in 1C. But in order for you and me to answer this question, we need to know what “broken” links are in 1C. For those who don’t know, broken links in 1c are links that point to an unused memory area, that is, they essentially point to nowhere. Now let's take as an example any document in the 1C enterprise system. It contains many different details. These details can be either simple (primitive types such as number, date, boolean), or they can be object (such as links to other system objects, for example various directories, enumerations, etc.) So here is the control of referential integrity in 1c this precisely means the fact that the object will not be deleted from the 1c system as long as it is referenced by any other objects of the system. Just marking the deletion of 1c objects allows you to preserve the referential integrity mechanism in 1c, since processing the deletion of marked objects will not allow you to delete an object while other objects are referencing it.

How to restore deleted objects in 1c? What happens to objects after they are deleted from 1C?

Many people ask us similar questions, and there is only one answer: physically deleting data from 1c (using the methods described below) leads to COMPLETE DESTRUCTION OF THE FILE FROM THE BASE! Restoring deleted files from the database is not possible.

We are always ready to provide you with timely assistance in updating the 1C 8.3 system.

Interactive deletion in 1s

So we have already discussed with you that interactive deletion in 1s occurs without referential integrity control, and this is fraught with very bad consequences for the system; it is recommended to use such deletion only for debugging purposes. To turn on interactive deletion 1s We first need to go to the configurator, open the General ---> Roles branch and select the “Full rights” role.

Now press the F9 key, the role “Full Rights” is copied and another “Full Rights1” appears. Open it by double clicking the mouse. The role properties window will appear, click the "Actions" ---> "Set all rights" button. After that, click OK. Now let’s save the database configuration; to do this, click on the little blue barrel in the upper left corner, or press the F7 key. If the barrel becomes inactive, then the configuration is saved. We have created a role with rights to interactive deletion of objects from 1c .

Now in the configurator, open the Administration ---> Users tab.

A list of users will open, select the user under which you want to enable interactive deletion of 1c objects and press pencil or F2. The user properties window will open, go to the second tab "Other". There, find the role that we copied, in my case it is “Full Rights1”, check the box and click OK.

After this, launch 1C Enterprise, select the user for whom the new role was installed. Now you can delete objects directly, to delete an object, select it and press the SHIFT + DEL key combination, the system will ask if you are sure about deleting, if the answer is positive, the object will be deleted from the system.

Deleting 1c objects by marking them for deletion or how to delete objects in 1c?

Now let's look at the question with you " How to delete objects in 1c?". So, we open the database we need in 1C enterprise. The screenshot shows "Accounting of a government institution", click in the menu on the "Operations" tab ---> " Removing marked objects".

If you have a managed interface, such as in "Enterprise Accounting Rev. 3.0", then there you need to go to the "Administration" tab, there you will see the "Service" subgroup, and in it you need to select " Removing marked objects".

An alternative way to open the object deletion assistant in 1C 8.2 and 1C 8.3

In general, if you cannot find a button in your configuration with which you can call the wizard deleting marked objects 1c, then in 1C 8.2 you can open it in the following way, this method is suitable for any configuration, the screenshots below show what actions need to be performed in 1C 8.2. Open the tree of all treatments that are in the system and select " Removing marked objects".

If you are working on the 1C 8.3 platform and you have a configuration with a managed interface, then you need to enable the “All functions” button; see how to do this.

Start searching for objects marked for deletion in 1c

A window will appear in front of us, which is shown below, it will reflect all objects marked for deletion in the system. We tick off those that we want to delete; in general, it is advisable to delete all of them, because they are marked for deletion, which means they are no longer needed in the system. After you have noted everything you need, click “Control”.

The system will take some time to complete this task, a little later you will see the window shown below. Please note that you may have objects with both green and red checkmarks.

Green means that the object can be deleted, red means that it cannot. An object marked with a red checkmark cannot be deleted, since it is referenced by other system objects. In the window below you will see those objects that reference it, and before you delete an object marked with a red checkmark, you need to remove references to this object from other objects. What does this mean in practice?

The need for timely removal of objects marked for deletion in 1c. How to delete objects marked with red checkmarks?

Let's look at an example using the "Enterprise Accounting" configuration. We have a document “Acceptance for accounting of fixed assets”, which respectively indicates the main asset (for example, a computer) and many other parameters, but they are not of interest to us at the moment. If we want to remove this OS from our database, then without additional actions we will not be able to do anything. Our OS (computer) will be marked with a red tick when we try to remove it. Why? But our document “Acceptance for accounting of OS” has a link to the OS that we now want to delete! When we click on it in the list of objects, we will see all the objects that reference our OS, and before we delete this OS, we need to first go into all these objects and delete the references. In our case, this means that we need to cancel the document “Acceptance for accounting of fixed assets”, and delete this fixed assets from the document, and then record the document. Now the document no longer references our OS, and we can delete it. One rule follows from all this: It is necessary to delete objects marked for deletion in 1C in a timely manner! Otherwise, getting rid of them later can be a very, very problematic matter, due to the fact that there will be a large number of links between objects. By the way, timely deleting objects from 1s also has several obvious advantages:

  1. System performance increases
  2. Reduces the likelihood of user errors
  3. Reduces the size of your database
  4. There is no “interface clutter” when the system has many objects marked for deletion, documents posted, and also not posted.

In our company you will always receive first-class service for the 1C program at very reasonable prices!

Completing the removal of marked objects in 1s

Now let's delete the objects completely. Click the "Delete" button. The system will delete all objects that were marked with green checkmarks.

Only those marked with red checkmarks will remain, click “Close”, this is the process deleting objects from 1c completed. If something doesn’t work out for you, we are ready to connect to your 1C remotely and help solve your problems.

1c deleting marked objects, detailed video instructions about deleting 1c objects

  • We tell you why you need a deletion mark in 1c
  • We show with an example how to delete objects in 1C
  • Useful practical advice is given
  • We show how to delete objects marked with red checkmarks in 1C
  • There is also a lot of other useful information

We hope that our article is about deleting objects marked for deletion in 1C She was very helpful and answered all your questions.

From this article you will learn how to permanently delete objects marked for deletion in 1C. The fact is that in 1C, deleting objects occurs in 2 stages:
1. Marking for deletion (a small red cross appears in the list of the object)
2. Removing marked objects.

Such a system is necessary because The deleted directory elements can be used in some documents. And if the program allowed you to immediately delete these elements, then they would be deleted from the documents and thus the accounting would be disrupted.

At the stage of deleting marked objects in 1C, a check is made for the use of the deleted objects in other objects. And if they are used, the program does not allow them to be deleted. But the program shows where the deleted objects are used and you, if desired, can open them and exclude the deleted elements from them, and then repeat the operation of deleting the marked objects.

How to delete objects in 1C 8.3

Let's look in detail at how to finally delete objects marked for deletion in 1C 8.3 using the configuration example, on managed forms - “Trade Management 11.2”.

To begin with - 1 - select the object needed to delete, select it and right-click on it in the window that opens

3 - We see that the objects we have selected are marked with a red cross (see picture below).

4 - In the menu “Master data and administration” - “Administration”. 5 – “Support and Maintenance” (see figure below).

6 - In the “Support and Maintenance” submenu that opens, select “Delete marked objects” and
7 — Put a checkmark next to the “Automatic removal of all marked objects” mode, and then click
8 — “Delete” button (see figure below).

10 - Here we see that deleting marked objects is completed, then click
11 - Click the “Close” button and we can continue further work in the program (see the figure below).

How to delete objects in 1C 8.2

And so, in this article “above” it was already discussed how complete deletion of marked objects occurs in 1C 8.3, i.e. in configurations on managed forms such as UT 11.2
Now, to fully answer the question “how to delete objects marked for deletion in 1C”, it will be necessary to go through the complete deletion procedure again, but using the example of 1C 8.2, i.e. configurations on “regular forms - “Trade Management 10.3”.

To do this we need to go through 11 steps:

1 - First, select the object you need to delete, select it and right-click on it in the window that opens
2 - Select “Set deletion mark” (see figure below).

3 — In the window that appears, click “Yes” (see figure below).

4 - Now we see that the object we selected is marked with a red cross (see picture below).

5 — In the “Operations” menu, select
6 - Deleting marked objects (see figure below).

7 — In the window that opens, click “Yes” (see figure below).

8 — In the “Search and delete marked objects” window, click the “Control” button (see the figure below).

9 — In the “Deleting objects” window that opens, click the “Delete” button (see the figure below).

10 - After all the actions performed, we see that “Objects were deleted”
11 — Click the “Close” button and we can continue working with the program (see the figure below).

You have deleted objects marked for deletion. If you need to delete all documents from the database, you can use